FileNotFoundError: [WinError 2] Python os.path.join curses himself (probably)

31 views Asked by At

Im new here, just like in Python, so dont chide me for dumb mistakes Here I think the most attractive part of the code that does not work as it should

folder4 = 'game2'
os.chdir(os.path.join(os.curdir, folder4))

Here's what kind of error I have

**Traceback (most recent call last):
  File "d:\games\Wem extractor\my_version\py_rename.py", line 20, in <module>
    os.chdir(os.path.join(os.curdir, folder4))
FileNotFoundError: [WinError 2] The system cannot find the file specified: '.\\game2'**

game2 is in my catalog Idk what's wrong Sorry if I gave too little information

0

There are 0 answers