Posted By

manatlan on 09/09/09


Tagged

python sys


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

vkolev
gartenstuhl


run in current dir


 / Published in: Python
 

  1. import os,sys
  2. try:
  3. os.chdir(os.path.split(sys.argv[0])[0])
  4. except:
  5. pass

Report this snippet  

You need to login to post a comment.