import os os.path.isdir('C:\ProgramData\Pk') if True: pass else: newpath = r'C:\ProgramData\Pk'# здесь ошибка if not os.path.exists ( newpath ): os.makedirs ( newpath ) Writes that the variable is not defined in what was wrong and how to fix it?
import os os.path.isdir('C:\ProgramData\Pk') if True: pass else: newpath = r'C:\ProgramData\Pk'# здесь ошибка if not os.path.exists ( newpath ): os.makedirs ( newpath ) Writes that the variable is not defined in what was wrong and how to fix it?
Source: https://ru.stackoverflow.com/questions/942575/
All Articles