Skip to content

Commit

Permalink
Update cli.py
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlightnexus authored Dec 18, 2023
1 parent 6a26c37 commit 8f21de4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions trustauthx/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ def main():
"ORG_ID": args.o
}
if is_mac():
with open('.env', 'w') as f:
for key, value in env_vars.items():
f.write(f'export {key}={value}\n')
try:
with open('.env', 'w') as f:
for key, value in env_vars.items():
f.write(f'export {key}={value}\n')
except: raise EnvironmentError()
else: subprocess.call("source .env", shell=True)
else:
with open('.env', 'w') as f:
for key, value in env_vars.items():
Expand Down Expand Up @@ -129,4 +132,4 @@ def install(packages):
# install(list_depends)
# print("\nDependencies installed.")
# a = sdk.Create_App(out=args.out)
# print(a)
# print(a)

0 comments on commit 8f21de4

Please sign in to comment.