This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iankko
Recipients iankko
Date 2009-04-14.11:47:30
SpamBayes Score 0.0008341601
Marked as misclassified No
Message-id <1239709652.53.0.858098316987.issue5753@psf.upfronthosting.co.za>
In-reply-to
Content
To sum up the behavior, the following table displays whether
modules are read from the current working directory for various
ways how the python scripts can be launched (unfixed/fixed version):

unfixed   fixed   run as
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
yes       no      python test.py
yes       no      python ./test.py
yes       no      python /tmp/396/test.py
yes       no      /bin/env python test.py

yes       yes     test.py
yes       yes     ./test.py
yes       yes     /tmp/396/test.py
yes       yes     /usr/bin/python test.py
yes       yes     /usr/bin/python ./test.py
yes       yes     /usr/bin/python /tmp/396/test.py

no        no      test-in-different-dir.py
no        no      ./bin/test-in-different-dir.py
no        no      python ./bin/test-in-different-dir.py
History
Date User Action Args
2009-04-14 11:47:32iankkosetrecipients: + iankko
2009-04-14 11:47:32iankkosetmessageid: <1239709652.53.0.858098316987.issue5753@psf.upfronthosting.co.za>
2009-04-14 11:47:31iankkolinkissue5753 messages
2009-04-14 11:47:30iankkocreate