Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
os.path.dirname(sys.argv[0]) always returns nothing
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Chris Angelico, post: 4232892"] It will give path information if you're invoking a script from another directory. Under some circumstances it might happen to give an absolute path for something in the current directory, but that can't be assumed or relied upon. ChrisA [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
os.path.dirname(sys.argv[0]) always returns nothing
Top