Back to SDS/2 Parametric Scripts

 

# Current working directory and change directory

import sys, os

 

print 'Current working directory: %s' % (os.getcwd())

 

print "\nCurrent system path:"

for i in sys.path:

    print i

 

os.chdir(os.path.join('C:/SDS2_7.0', 'jobs', 'Test1'))

 

print '\nCurrent working directory: %s' % (os.getcwd())

 

os.chdir(os.path.join('C:/SDS2_7.0'))

 

print 'Current working directory: %s' % (os.getcwd())