File size: 489 Bytes
233c861 439b296 233c861 4d8b884 25d77f0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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() |