Hi guys,
I have 2 variables a and b and the following code
a= /user/temp/new
b= test
I am using
to change my directory to test but I am getting following error
Traceback (most recent call last):
File "bfm.py", line 50, in <module>
os.chdir(os.pat h.join('a','b') )
FileNotFoundErr or: [Errno 2] No such file or directory: 'a/b'
But I have test directory in new.
Can any one explain me how to resolve this error
I have 2 variables a and b and the following code
a= /user/temp/new
b= test
I am using
Code:
os.chdir(os.path.join('a','b'))
to change my directory to test but I am getting following error
Traceback (most recent call last):
File "bfm.py", line 50, in <module>
os.chdir(os.pat h.join('a','b') )
FileNotFoundErr or: [Errno 2] No such file or directory: 'a/b'
But I have test directory in new.
Can any one explain me how to resolve this error
Comment