Skip to content

pdoc cli ignoring virtual environment #44

Closed
@jlaufersweiler

Description

@jlaufersweiler

Expected Behavior

Runing pdoc3 cli inside active venv shell session:
(venv) C:\Users\me\dev\fooproject>pdoc --html foo
Documentation should be generated based on modules active in the virtual environment.

Actual Behavior

ModuleNotFoundError and ImportError raised for any modules/packages imported by foo that are not present in the system Python directory.

Steps to Reproduce

  1. Activate virtual environment.
  2. run pdoc cli for module that imports resources that are in the virtual environment but are not in the system environment.

Additional info

  • pdoc version:0.5.3
  • platform: Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wanted 🤷Extra attention is neededupstreamIssue affects a dependency of ours

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions