Skip to content

Commit

Permalink
Merge pull request #303 from machow/fix-cwd-path
Browse files Browse the repository at this point in the history
fix: really add cwd to sys path this time
  • Loading branch information
machow authored Oct 23, 2023
2 parents c4cbbea + e925f5b commit 1f4f9f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quartodoc/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ def build(config, filter, dry_run, watch, verbose):
if dry_run:
pass
else:
# add current directory to path, and then temporarily switch directories.
# this supports the case where a user is depending on the current directory
# for imports
sys.path.append(os.getcwd())
with chdir(Path(config).parent):
if watch:
pkg_path = get_package_path(builder.package)
Expand Down

0 comments on commit 1f4f9f3

Please sign in to comment.