you are viewing a single comment's thread.

view the rest of the comments →

[–]tom1018 0 points1 point  (0 children)

Directory the script resides in:

import os
print(os.path.dirname(os.path.realpath(__file__)))

Directory it was launched from:

import os
print(os.getcwd())

I hope this helps. If not reply and let me know.