-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] respect project root when loading seeds (#8762)
- Loading branch information
1 parent
549dbf3
commit 964e0e4
Showing
5 changed files
with
98 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Fixes | ||
body: Enable seeds to be handled from stored manifest data | ||
time: 2023-10-06T13:45:51.925546-04:00 | ||
custom: | ||
Author: michelleark | ||
Issue: "6875" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import os | ||
from contextlib import contextmanager | ||
from typing import Optional | ||
from pathlib import Path | ||
|
||
|
||
@contextmanager | ||
def up_one(): | ||
def up_one(return_path: Optional[Path] = None): | ||
current_path = Path.cwd() | ||
os.chdir("../") | ||
try: | ||
yield | ||
finally: | ||
os.chdir(current_path) | ||
os.chdir(return_path or current_path) |