Change CWD to File's Directory

Submitted by:Jhon Jhon

Date added:03 August, 2013

Category:Bash

Example shows bash code to change CWD to file's directory

Tags: change cwd

Code Snippet:

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

Comments