Answers for "open current location in python"

12

python get current file location

import os
os.path.dirname(os.path.abspath(__file__))
Posted by: Guest on May-11-2020
0

how to get location using python

import os
os.system('echo $PWD')
Posted by: Guest on May-23-2021

Code answers related to "open current location in python"

Python Answers by Framework

Browse Popular Code Answers by Language