Skip to main content

No project description provided

Project description

Pyinvoke is a very simple module that is intended to make invoking Python applications in modules less pain. Since Python’s -m option will load the module as __main__ module and not as the module it is intended to be loaded as, you can get interesting errors.

$ python -m module.main
Traceback (most recent call last):
  File "module/main.py", line 7, in <module>
    from .stuff import ham
SystemError: Parent module '' not loaded, cannot perform relative import

Well, shucks! Works as expected with pyinvoke!

$ pip3 install pyinvoke
$ python3 -m pyinvoke module:main

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyinvoke-1.0.0.tar.gz (1.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page