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 f70a82d commit 55e4649
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ def main():
python_executable = os.path.join(sys.prefix, 'bin' if sys.platform != 'win32' else 'Scripts', 'python')
subprocess.run([python_executable, "-m", "venv", "myenv"])

# Ensure activation script is executable
activation_script = os.path.join("myenv", "bin", "activate")
os.chmod(activation_script, 0o755)

# Activate virtual environment
if sys.platform == 'win32': # Windows
subprocess.run(["myenv\\Scripts\\activate.bat"], shell=True)
Expand Down

0 comments on commit 55e4649

Please sign in to comment.