I have a python command line tool that does recursive regex searching through a directory. I have the tool setup like this:
command: python
parameters: "c:\path\searcher.py" -d "%d" "%?"
This expands to:
"python" "c:\path\searcher.py" -d "C:\Webpage\test folder\" "12345"
Within python, the -d parameter becomes:
C:\Webpage\test folder\" 12345
Python's built-in parameter parsing is expecting all backslashes to be escaped, but ignores invalid entries. So the \ in \path\searcher.py is ignored, but the last \ in c:\webpage\test folder\ actually escapes the quotes, and that screws everything up.
Is there a way to do this in PN to be compatible with standard python arguments? It'd be nice to have another %d parameter, except in python-style. I can redo my python script to manually parse arguments, but I'd rather have PN be compatible. Thanks!