TaylorSMarks / playsound

Pure Python, cross platform, single function module with no dependencies for playing sounds.
Other
504 stars 118 forks source link

Invalid filename result when running from specific folder #123

Open tlansbergen opened 2 years ago

tlansbergen commented 2 years ago

When running from a certain path:

D:\Users\tom\OneDrive\Documenten\Cursussen\Data Engineer - Bit Academy\bit-academy\python-novice\06-level\whats-that-sound

with al local wav-file I get this error:

File "D:\Users\tom\OneDrive\Documenten\Cursussen\Data Engineer - Bit Academy\bit-academy\python-novice\06-level\whats-that-sound\whats-that-sound\lib\site-packages\playsound.py", line 72, in _playsoundWin
winCommand(u'open {}'.format(sound)) File "D:\Users\tom\OneDrive\Documenten\Cursussen\Data Engineer - Bit Academy\bit-academy\python-novice\06-level\whats-that-sound\whats-that-sound\lib\site-packages\playsound.py", line 64, in winCommand
raise PlaysoundException(exceptionMessage)

When copying all files to 'E:\Temp' everything works fine. I suspect the path handling doesn't like the original path.