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

How invoke __main__.py to use cli commands? #23

Open
jventura68 opened this issue Jul 7, 2022 · 0 comments
Open

How invoke __main__.py to use cli commands? #23

jventura68 opened this issue Jul 7, 2022 · 0 comments

Comments

@jventura68
Copy link

jventura68 commented Jul 7, 2022

Thanks for share your template, it's amazing.

I'm trying to invoke cli command from terminal, can anyone give an example of this invocation?.

I have a project named "templateFast" and I tried:

  • At c:\templateFast path:

    c:\templateFast> python project/__main__.py --help
    Traceback (most recent call last):
     File "C:\.....\templateFast\templatefast\__main__.py", line 2, in <module>
        from .cli import cli
      ImportError: attempted relative import with no known parent package
    
  • At c:\templateFast\templateFast path throw the same error

  • The execution with python -m don't run in any case

Any help will be appreciated.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant