[Tutor] Problem making '.exe' from python.

Jason Massey jason.massey at gmail.com
Fri Nov 17 20:19:11 CET 2006


Check to make sure that under the shortcut properties that you have the
"Start in" field filled out with the directory the script is located.

On 11/17/06, Chris Hengge <pyro9219 at gmail.com> wrote:
>
> Whether using py2exe or pyInstaller I've noticed a problem and I'm not
> sure how to fix it...
>
> When I create a .exe and then make a shortcut to the file and run it.. the
> program will crash without warning.
> If I run the .exe directly it runs fine.
>
> My assumption of the problem:
> Since it is still built on python and my variables for files or module
> calls are designed for "they are in the same location I run the script from"
> when I run the script from a shortcut it will fail finding the wanted
> pieces.
>
> Is this true? And if so, how do I fix it? I could write fixed paths into
> my code, but that is unrealistic and makes running my scripts to test them a
> pain.
>
> Thanks.
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061117/8c5769b6/attachment.html 


More information about the Tutor mailing list