Skip to content

Commit

Permalink
fix issue where .env file not created
Browse files Browse the repository at this point in the history
  • Loading branch information
Norman Chia committed Jun 15, 2024
1 parent 66383d8 commit e49e950
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 e49e950

Please sign in to comment.