Skip to content

Commit 6ddf166

Browse files
committed
Force load_dotenv to use cwd, and move to before the checks
1 parent 206f487 commit 6ddf166

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chipflow_lib/steps/silicon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def build_cli_parser(self, parser):
6565

6666
def run_cli(self, args):
6767
if args.action == "submit" and not args.dry_run:
68+
dotenv.load_dotenv(dotenv_path=dotenv.find_dotenv(usecwd=True))
6869
if self.project_name is None:
6970
raise ChipFlowError(
7071
"Key `chipflow.project_id` is not defined in chipflow.toml; "
@@ -89,7 +90,6 @@ def prepare(self):
8990
def submit(self, rtlil_path, *, dry_run=False):
9091
"""Submit the design to the ChipFlow cloud builder.
9192
"""
92-
dotenv.load_dotenv()
9393
git_head = subprocess.check_output(
9494
["git", "-C", os.environ["CHIPFLOW_ROOT"],
9595
"rev-parse", "HEAD"],

0 commit comments

Comments
 (0)