It’s definitely an issue somewhere in queenbee-luigi, though maybe my explanation is not correct.
I tried the following edit to manually add the
"" to the
But doing this results in the following error:
Usage: queenbee luigi translate [OPTIONS] RECIPE [PROJECT_FOLDER]
Try 'queenbee luigi translate --help' for help.
Error: Invalid value for '[PROJECT_FOLDER]': Directory '"C:\Users\chris\Desktop\Test Folder"' does not exist.
I get this error whether or not I pass the command argument in as a literal string or I escape each double quote.
So trying to pass in arguments as a sequence to subprocess but with double quotes around an argument clearly results in duplicated double-quotes (I am guessing that there’s one pair of quotes that subprocess puts there and another that I am putting there manually). It may also help to know that the commands I call with subprocess for energy result parsing are able to handle the white space in file paths without any extra double quotes but I get the same error about duplicated double quotes if I try to manually add the double quotes. So it really seems like the
"" are automatically included when using list inputs for subprocess.
If you want, I can forego this use of a list input for the arguments for subprocess and just format the whole command as a single string. In that case, I can manually add the quotations where they are needed and everything works. But there’s definitely a bug here in the way that queebee is parsing the arguments since it is currently incompatible with subprocess list inputs at the moment. So let me know how you’d like to proceed.