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

Changing the email address on your Nike + iPod acount

rsync to SD card recopying files