ai-voice-cloning/activate_env.py

9 lines
238 B
Python
Raw Normal View History

2023-11-30 03:14:57 +00:00
import subprocess
import os
# Ativa o ambiente virtual
subprocess.run([r'.\venv\Scripts\activate.bat'], shell=True)
# Configura as variáveis de ambiente
os.environ['PATH'] = r'.\bin;' + os.environ['PATH']
os.environ['PYTHONUTF8'] = '1'