python set cwqd code example
Example 1: python set cwd to script directory
abspath = os.path.abspath(__file__)
dname = os.path.dirname(abspath)
os.chdir(dname)
Example 2: python set workspace dir
import os
os.chdir(path)
abspath = os.path.abspath(__file__)
dname = os.path.dirname(abspath)
os.chdir(dname)
import os
os.chdir(path)