error in os.chdir

Abdur-Rahmaan Janhangeer arj.python at gmail.com
Sat Jun 30 08:07:22 EDT 2018


for user input, a replace might be the solution, using / in internal code

Abdur-Rahmaan Janhangeer
https://github.com/Abdur-rahmaanJ

Use forward slashes instead of backslashes for all paths.
>
> os.chdir('D:/Projects/Initiatives/machine learning/programs')
>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list