Skip to content

Commit

Permalink
fix: period
Browse files Browse the repository at this point in the history
修复pyinstall打包时候因为__path__[0] 为当前路而非根路径导致的错误
  • Loading branch information
wandth authored and muyr committed Jun 12, 2024
1 parent df46ca3 commit ed09fea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dayu_widgets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@

# Import built-in modules
import os
import sys


DEFAULT_STATIC_FOLDER = os.path.join(__path__[0], "static")
DEFAULT_STATIC_FOLDER = os.path.join(sys.modules[__name__].__path__[0], "static")
CUSTOM_STATIC_FOLDERS = []
# Import local modules
from dayu_widgets.theme import MTheme
Expand Down

0 comments on commit ed09fea

Please sign in to comment.