Skip to content

Commit

Permalink
Merge pull request #243 from aiverify-foundation/fix/create-config
Browse files Browse the repository at this point in the history
fix issue where .env file not created
  • Loading branch information
imda-lionelteo committed Jun 28, 2024
2 parents 4dc07c7 + e49e950 commit 627185f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions moonshot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def moonshot_data_installation():
# Clone the repository
run_subprocess(["git", "clone", repo], check=True)

# Create .env to point to installed folder
ms_lib_env_file(folder_name)

# Change directory to the folder
os.chdir(folder_name)

Expand All @@ -99,8 +102,6 @@ def moonshot_data_installation():
# Change back to the base directory
os.chdir("..")

# Create .env to point to installed folder
ms_lib_env_file(folder_name)
else:
print(f"Directory {folder_name} already exists, skipping clone.")

Expand Down

0 comments on commit 627185f

Please sign in to comment.