Closed wallace11 closed 4 years ago
Improved the implementation to work in the following manner:
load_script
accepts an optional external_args
argument.sys.argv
locally.sys.argv
by trying to write it with the external_args
instance attribute.sys.argv
.Also:
shlex.split()
which allows proper character escaping.--external_args
won't work now without arguments (no meaning to use it with empty args)
As we discussed earlier. It seems to work fine with just setting
sys.argv
. Tested with a script withargparse
. I have no idea if it works with other libraries as well (click, etc...).If there's something with the implementation that bothers you, please tell me and I'll make changes accordingly.