Revert venv on the fly

This commit is contained in:
henryruhs
2024-01-28 20:40:53 +01:00
parent 6fb23fe747
commit 32d2941f32
+2 -11
View File
@@ -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()