ShiromiyaGamer
commited on
Commit
•
233c861
1
Parent(s):
25d77f0
Update elfinder.py
Browse files- elfinder.py +16 -16
elfinder.py
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
-
import sys
|
2 |
-
import os
|
3 |
-
|
4 |
-
# Adicione o caminho do ambiente virtual ao sys.path
|
5 |
-
venv_path = '/kaggle/
|
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()
|
|
|
1 |
+
import sys
|
2 |
+
import os
|
3 |
+
|
4 |
+
# Adicione o caminho do ambiente virtual ao sys.path
|
5 |
+
venv_path = '/kaggle/tmp/Applio/.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()
|