In powershell you have $PSscriptroot if you want to call a file that is located in the folder of the script you are running - what is the equivalent in python?
Asked
Active
Viewed 139 times
0
-
Do you mean the *current working directory*, or the *directory of the file the code is in*? – deceze May 18 '18 at 07:25
-
As @deceze mentioned + or the directory of the executable ? (which may differ from the directory your code/file is in) – Edwin van Mierlo May 18 '18 at 07:27
-
im asking about the file directory, although the standard working directory would be interesting too - i recall that you could change that by a user config file in powershell – Flying Thunder May 18 '18 at 07:53