ShiromiyaGamer commited on
Commit
25d77f0
1 Parent(s): f4c4b6f

Upload elfinder.py

Browse files
Files changed (1) hide show
  1. elfinder.py +17 -0
elfinder.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ import os
3
+
4
+ # Adicione o caminho do ambiente virtual ao sys.path
5
+ venv_path = '/kaggle/working/.venv/lib/python3.10/site-packages'
6
+ sys.path.insert(0, venv_path)
7
+
8
+ # Defina as variáveis de ambiente necessárias
9
+ os.environ['ELFINDER_ROOT_DIR'] = '/kaggle/working'
10
+ os.environ['ELFINDER_PORT'] = '9876'
11
+
12
+ # Importe e execute o imjoy-elfinder
13
+ from imjoy_elfinder.__main__ import main
14
+
15
+ if __name__ == "__main__":
16
+ sys.argv = [sys.argv[0], '--root-dir=/kaggle/working', '--port', '9876']
17
+ main()