miek770 / w40k-generator

Pet project whose purpose is to randomly generate valid lists for Warhammer 40,000's 9th edition, based on your personal model collection.
MIT License
1 stars 1 forks source link

File path issue #4

Open dosjetka opened 3 years ago

dosjetka commented 3 years ago

I downloaded the latest version (0.2.1), ran the .exe, opened up the \codices\necron.cfg file, left the default setting for all but one option (selected the option to ignore proxies), and then ran the program. I got the following error:

'D:\Miniature' is not recognized as an internal or external command, operable program or batch file.

I'm assuming it has something to do with the folder being named "Miniature Wargaming" and the code not recognising or knowing what to do with the space between the first and second word fo the folder name. The problem is resolved if I replace the space in folder names with underscores (which I'm willing to do now for testing purposes but not keep as a permanent feature).

miek770 commented 3 years ago

Thanks for reporting this. I know this is a requirement of the applications I compile with Nuitka but I haven't found how to fix this yet. My short term workaround would be to check if there's a space in the path at the start of the program and exit gracefully with a clear message if it's the case.

The real fix would be to allow the program compiled with Nuitka to tolerate spaces in the path. The short term fix may not suit everyone (I don't like having spaces in my paths anyways, but I'm sure others have different preferences).

Edit: I find no reference of this issue on the web, it might be caused by Gooey or a combination of Nuitka and Gooey. I'll have to build the simplest program that has this problem and open an issue on either (or both) of those projects.