How to get current directory of main python file?
12149
How do I get the path and name of the file that is currently executing?
87067
Is there a POSIX (or at least a popular) utility to set the current working directory when invoking a program?
24877
How to retrieve a module's path?
12579
How to determine the current shell I'm working on
25802
When writing a bash script, how do I get the absolute path of the location of the current file?
12330
Find full path of the Python interpreter?
51749
What's the best way to determine the location of the current PowerShell script?
85920
Get parent directory of parent directory
71932
Getting filesystem path of class being executed
95193
Find out current working directory of a running process?
74847
Get current folder name by a DOS command?
26946
How do you find the directory of a command?
118180
Get the current script file name
126608
How to find the real user home directory using python?
72828
Analogue of NotebookDirectory[] for scripts (to get the directory path of my script.m)?
43753
Why is 'dir()' named 'dir' in python?
147229
Get current folder path