-
-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RunFrozenPython does not handle arguments #588
Comments
Yes, that's indeed a bit awkward. It has come up before (although not here in the issues). |
Any chance this bug will be looked at? I understand it isn't very high priority. I'm just wondering if I need to accept that it is not going to happen. |
RunFrozenPython is indeed not a high prio for me, so I wouldn't expect to get to it within the next couple of weeks, sorry. |
Hey @fzumstein, is this feature still not implemented yet? |
yes, this is still open... |
Theoretically what should I do to be able to pass arguments to a frozen py file? Is possible to quickly add that feature? I think this is very important to handle different functions from just one freezed py file. Because with Runpython I can select wich function I can use for example: But how could I call an specific function with RunFrozenPython? |
As an ugly workaround for now, you could build different executables for each function. I once had that in an old version of the database sample, see e.g. here: https://github.com/ZoomerAnalytics/xlwings/tree/v0.3.5/examples/database The offending code is here and might not be that difficult to fix actually: https://github.com/ZoomerAnalytics/xlwings/blob/master/xlwings/main.py#L541 If you want me to make this a priority, there's an easy way nowadays: https://www.xlwings.org/priority-ticket |
Allow RunFrozenPython to include args, closes #588
Usually when you freeze a python script that can take arguments at the command line the EXE file works the same.
python foo.py arg1 agr2
works the same as
foo.exe arg1 arg2
This does not seem to work in xlwings.
The text was updated successfully, but these errors were encountered: