Migrate from PyInstaller to Nuitka for compilation
This commit is contained in:
@@ -3,8 +3,12 @@ import os
|
||||
import sys
|
||||
|
||||
|
||||
def _is_frozen():
|
||||
return getattr(sys, 'frozen', False) or '__compiled__' in sys.modules
|
||||
|
||||
|
||||
def _get_app_dir():
|
||||
if getattr(sys, 'frozen', False):
|
||||
if _is_frozen():
|
||||
return os.path.dirname(sys.executable)
|
||||
return os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user