Skip to content

Commit

Permalink
Update updater.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KorryKatti committed Mar 14, 2024
1 parent 6d4d093 commit b2aad25
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ def main():

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

if __name__ == "__main__":
main()

0 comments on commit b2aad25

Please sign in to comment.