-
Notifications
You must be signed in to change notification settings - Fork 44
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
Support for __main__.py #59
Comments
As you've discovered, this is due to limitations on Pyflow's CLI. I think it would be nice to support the flow you tried, since it's intuitive, and consistent with existing python syntax. I'll add it. |
Possibly related: It seems that pyflow just tries to consume all flags, even those that were intended for the python script I'm trying to run.
|
I can confirm this. There's something wonky with the arg parsing handling. I think I need to re-organize that section of the code; making the initial change should have been easy, but I ran into trouble. May switch off the |
resolves David-OConnorgh-59 Needs work to get `pyflow --help` to once again show help for the removed subcommands. I currently don't know how to make structopt display help for external_subcommands.
I plan to adopt pyflow early in a production environment despite how young it is simply because it's that good. However I can't seem to be able to even run my project. Here's my (simplified) project structure:
Here's what I've tried so far:
pyflow -m myproject
pyflow myproject
pyflow python -m myproject
__pypackages__\3.7\.venv\Scripts\activate.bat
followed bypython -m myproject
(main.py tries to import click but it fails.)
I'm out of ideas. Any help is appreciated!
Edit: I've now moved
__main__.py
out ofmyproject
and renamed it torun.py
, and I run it withpyflow run.py
. It would be better if pyflow supported the standardized__main__.py
in some way, though.The text was updated successfully, but these errors were encountered: