mirror of
https://github.com/facefusion/facefusion.git
synced 2026-04-26 11:26:41 +02:00
Revert venv on the fly
This commit is contained in:
@@ -1,15 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
import subprocess
|
||||
from facefusion import core
|
||||
|
||||
if __name__ == '__main__':
|
||||
if 'venv' in sys.executable or '--skip-venv' in sys.argv:
|
||||
from facefusion import core
|
||||
|
||||
core.cli()
|
||||
else:
|
||||
try:
|
||||
subprocess.run([ 'venv/bin/python', 'run.py' ])
|
||||
except:
|
||||
sys.exit()
|
||||
core.cli()
|
||||
|
||||
Reference in New Issue
Block a user