@@ -65,15 +65,15 @@ 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 ()
6869 if self .project_name is None :
6970 raise ChipFlowError (
70- "Key `chipflow.project_id` is not defined in chipflow.toml; "
71- "see https://chipflow.io/beta for details on how to join the beta" )
72- if ("CHIPFLOW_API_KEY_ID" not in os .environ or
73- "CHIPFLOW_API_KEY_SECRET" not in os .environ ):
71+ "Key `chipflow.project_name` is not defined in chipflow.toml" )
72+ if "CHIPFLOW_API_KEY_SECRET" not in os .environ :
7473 raise ChipFlowError (
75- "Environment variables `CHIPFLOW_API_KEY_ID` and `CHIPFLOW_API_KEY_SECRET` "
76- "must be set in order to submit a design" )
74+ "Environment variable `CHIPFLOW_API_KEY_SECRET` "
75+ "must be set in order to submit a design. "
76+ "You can set this in a `.env` file in your project root." )
7777
7878 rtlil_path = self .prepare () # always prepare before submission
7979 if args .action == "submit" :
@@ -89,7 +89,6 @@ def prepare(self):
8989 def submit (self , rtlil_path , * , dry_run = False ):
9090 """Submit the design to the ChipFlow cloud builder.
9191 """
92- dotenv .load_dotenv ()
9392 git_head = subprocess .check_output (
9493 ["git" , "-C" , os .environ ["CHIPFLOW_ROOT" ],
9594 "rev-parse" , "HEAD" ],
0 commit comments