Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pybind11_stubgen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from argparse import ArgumentParser, Namespace
from collections.abc import Sequence
from pathlib import Path
import sys

from pybind11_stubgen.parser.interface import IParser
from pybind11_stubgen.parser.mixins.error_handlers import (
Expand Down Expand Up @@ -350,6 +351,7 @@ def run(
dry_run: bool,
writer: Writer,
):
sys.path.insert(0, str(Path.cwd().resolve()))
modules = []
for module_name in module_names:
module = parser.handle_module(
Expand Down