Answers for "python set working directory from command line"

5

setwd python

os.chdir("/home/varun/temp")
Posted by: Guest on April-13-2020
0

python set cwd to script directory

abspath = os.path.abspath(__file__)
dname = os.path.dirname(abspath)
os.chdir(dname)
Posted by: Guest on October-11-2020

Code answers related to "python set working directory from command line"

Python Answers by Framework

Browse Popular Code Answers by Language