Get path to current script in Python

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

Comments

Popular posts from this blog

OS X right side of menu bar frozen

Show running queries on Postgresql/Greenplum

rsync to SD card recopying files