Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KorryKatti committed Mar 14, 2024
1 parent 85f461e commit 53f3402
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@

def activate_virtualenv():
if os.name == 'posix': # Unix-like OS (Linux/Mac)
subprocess.run(["source", "myenv/bin/activate"], shell=True)
subprocess.run(["/bin/bash", "-c", "source myenv/bin/activate"], shell=True)
elif os.name == 'nt': # Windows
subprocess.run(["myenv\\Scripts\\activate.bat"], shell=True)


def read_version():
with open('config.json', 'r') as f:
config_data = json.load(f)
Expand Down

0 comments on commit 53f3402

Please sign in to comment.