Change CWD to File's Directory


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



Copy this code and paste it in your HTML
  1. BASH: cd `dirname $0`
  2. Python: os.chdir(os.path.dirname(sys.argv[0]))

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.