Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/KorryKatti/Thunder
Browse files Browse the repository at this point in the history
  • Loading branch information
KorryKatti committed Mar 14, 2024
2 parents 5613821 + 2b01811 commit dc4d0d0
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,11 @@ def main():
# Copy files from update to the current directory
copy_files(update_dir, os.path.dirname(__file__))

# Get path to appfiles directory
appfiles_dir = os.path.join(os.path.dirname(__file__), "appfiles")
# Display "Done" message
print("Done")

# Execute shell script to activate environment and install requirements
if sys.platform == 'win32': # Windows
script_path = os.path.join(appfiles_dir, "activate_env.bat")
subprocess.run([script_path], shell=True)
else: # Unix-like OS (Linux/Mac)
script_path = os.path.join(appfiles_dir, "activate_env.sh")
subprocess.run(["bash", "-c", f"source {script_path}"], shell=True)
# Launch index.py
subprocess.run(["python", "index.py"])

if __name__ == "__main__":
main()

0 comments on commit dc4d0d0

Please sign in to comment.