Posts Tagged ‘file-operations’

Python: Get the Directory of a Given File in 1 Line

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

python1