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 <[EMAIL PROTECTED]> 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@python.org http://mail.python.org/mailman/listinfo/tutor
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor