dependencias / elfinder.py
ShiromiyaGamer's picture
Update elfinder.py
4d8b884 verified
raw
history blame
489 Bytes
import sys
import os
# Adicione o caminho do ambiente virtual ao sys.path
venv_path = '/kaggle/tmp/Applio/.venv/lib/python3.10/site-packages'
sys.path.insert(0, venv_path)
# Defina as variáveis de ambiente necessárias
os.environ['ELFINDER_ROOT_DIR'] = '/kaggle'
os.environ['ELFINDER_PORT'] = '9876'
# Importe e execute o imjoy-elfinder
from imjoy_elfinder.__main__ import main
if __name__ == "__main__":
sys.argv = [sys.argv[0], '--root-dir=/kaggle', '--port', '9876']
main()