ariovistus / pyd

Interoperability between Python and D
MIT License
158 stars 32 forks source link

Now works when Python path on Windows has spaces (Issue 52) #75

Closed thedeemon closed 6 years ago

thedeemon commented 6 years ago

I tried to build examples/hello on Windows and immediately bumped into a problem with Python being installed in Program Files. The paths were quoted twice, so dmd was being invoked with arguments like ""c:\Program Files...\smth.d"" and of course it complained about not knowing module Program (first word in Program Files). Turns out if we don't try to quote the paths in dcompiler.py, then they are quoted later just once and everything starts to work fine, at least the example built and worked successfully.