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

Improved module importing / support for namespace packages #62

Merged
merged 3 commits into from May 3, 2019
Commits on May 3, 2019
  1. API: New better module import / support for namespace packages

    kernc committed May 3, 2019
    Breaks CLI behavior when modules specified as file paths:
    Previously full relative path was considered module path,
    now only the basename is.
    Thus some tests break.
  2. REF: Only reload modules when in --http mode

    kernc committed May 3, 2019
    Maybe avoids problems with modules whose importing
    has side effects.
  3. BUG: Don't put non-str in sys.path

    kernc committed May 3, 2019
    Even as documented that other types are ignored [1],
    it seemed to break on other versions of Python [2].
    
    [1]: https://docs.python.org/3/library/sys.html#sys.path
    [2]: https://travis-ci.org/pdoc3/pdoc/jobs/527591043#L218-L270
You can’t perform that action at this time.