run in current dir


/ Published in: Python
Save to your folder(s)



Copy this code and paste it in your HTML
  1. import os,sys
  2. try:
  3. os.chdir(os.path.split(sys.argv[0])[0])
  4. except:
  5. pass

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.