Skip to content
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

Closed
rbn920 opened this issue Nov 21, 2016 · 7 comments
Closed

RunFrozenPython does not handle arguments #588

rbn920 opened this issue Nov 21, 2016 · 7 comments
Labels
Milestone

Comments

@rbn920
Copy link

rbn920 commented Nov 21, 2016

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.

@fzumstein fzumstein added the bug label Nov 22, 2016
@fzumstein
Copy link
Member

Yes, that's indeed a bit awkward. It has come up before (although not here in the issues).

@rbn920
Copy link
Author

rbn920 commented Oct 19, 2017

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.
Thanks

@fzumstein
Copy link
Member

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.

@Kamforka
Copy link

Kamforka commented May 4, 2018

Hey @fzumstein, is this feature still not implemented yet?

@fzumstein
Copy link
Member

yes, this is still open...

@jvaldiviezo9
Copy link

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:
Runpython ("import main;main.process_csv()")

But how could I call an specific function with RunFrozenPython?

@fzumstein
Copy link
Member

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

@fzumstein fzumstein added this to the 0.15.2 milestone Jan 28, 2019
fzumstein added a commit that referenced this issue Feb 3, 2019
Allow RunFrozenPython to include args, closes #588
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants