Posted By

iloveitaly on 12/18/08


Tagged

script directory cwd


Versions (?)

Change CWD to File's Directory


 / Published in: Bash
 

  1. BASH: cd `dirname $0`
  2. Python: os.chdir(os.path.dirname(sys.argv[0]))

Report this snippet  

You need to login to post a comment.