Skip to content

Commit

Permalink
Fixed issue where project path was not always the current working dir…
Browse files Browse the repository at this point in the history
…ectory
  • Loading branch information
fireundubh committed Sep 25, 2023
1 parent 4b1edb4 commit 39e9617
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyro/ProjectBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def __init__(self, options: ProjectOptions) -> None:

self.project_name = os.path.splitext(os.path.basename(self.options.input_path))[0]
self.project_path = os.path.dirname(self.options.input_path)
os.chdir(self.project_path)

def __setattr__(self, key: str, value: object) -> None:
if isinstance(value, str) and endswith(key, 'path'):
Expand Down

0 comments on commit 39e9617

Please sign in to comment.