Issue with Desktop folder on seperate drive
See original GitHub issueI have my Desktop folder located on the E drive, and was receiving
Traceback (most recent call last): File "E:\Desktop\Development\Lyndor-master/run.py", line 110, in <module> main() File "E:\Desktop\Development\Lyndor-master/run.py", line 31, in main schedule_download(url) File "E:\Desktop\Development\Lyndor-master/run.py", line 47, in schedule_download download_course(url) File "E:\Desktop\Development\Lyndor-master/run.py", line 74, in download_course desktop_folder_path = install.folder_path("Desktop") File "E:\Desktop\Development\Lyndor-master\install.py", line 46, in folder_path os.chdir(os.path.expanduser('~/' + folder)) FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\Hunter/Desktop'
I was able to fix this by replacing line 46 in install.py
os.chdir(os.path.expanduser('~/' + folder))
with
os.chdir(os.path.expanduser('E:\' + folder))
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
@ankitsejwal Maybe we should close this due to no reply; I’ve seen similar github repos use a tag for no replies to keep things tidy. 🤷♂️
@rackyman Odd you are getting an error; it works for me on both Win7 and Win10.
os.environ['USERPROFILE']
seems to work as well so a change should be fine.In the meantime could you open a python interpreter
python
and supply the output of the following?