Skip to content

Commit 7f7ee2e

Browse files
committed
fix(main.py): 修复默认__package__的指向错误问题
1 parent 7cdd8b2 commit 7f7ee2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
OUTPUT_PANEL_NAME = f'output.{ PANEL_NAME }'
1818
SETTINGS = None
1919
WORK_SPACE = ""
20-
CANT_RUN_WORK_SPACE = [path.abspath("."), path.abspath(__package__)]
20+
CANT_RUN_WORK_SPACE = [path.abspath("."), path.abspath(path.dirname(__package__))]
2121

2222
COMMAND_NAME = {
2323
"update":f"{PANEL_NAME}_update_panel"

0 commit comments

Comments
 (0)