File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import sys
2+ import os
3+
4+ sys .path .insert (0 , os .path .join (os .path .dirname (__file__ ), 'src' ))
5+
6+ from netwatch .tui import main
7+
8+ if __name__ == '__main__' :
9+ main ()
Original file line number Diff line number Diff line change 11import sys
2+ import os
23from PyInstaller .utils .hooks import copy_metadata , collect_data_files
34
45datas = []
56
67# COLLECT METADATA & RESOURCES
7- # Textual needs metadata for version info
88datas += copy_metadata ('textual' )
9- # Netwatch needs its own metadata
109datas += copy_metadata ('netwatchpy' )
11- # Desktop Notifier needs metadata AND actual data files (icons, resources)
1210datas += copy_metadata ('desktop_notifier' )
11+ # This collects the icons/assets for notifications
1312datas += collect_data_files ('desktop_notifier' )
1413
1514# DEFINE HIDDEN IMPORTS
1615hidden_imports = [
17- # Textual Widgets (loaded dynamically, missed by PyInstaller)
1816 'textual.widgets._tab_pane' ,
1917 'textual.widgets._tabbed_content' ,
2018 'textual.widgets._data_table' ,
21-
22- # Desktop Notifier Resources (loaded dynamically)
2319 'desktop_notifier.resources' ,
2420]
2521
@@ -34,8 +30,8 @@ elif sys.platform.startswith('darwin'):
3430block_cipher = None
3531
3632a = Analysis (
37- ['src/netwatch/tui .py' ],
38- pathex = [],
33+ ['entry_point .py' ],
34+ pathex = ['src' ],
3935 binaries = [],
4036 datas = datas ,
4137 hiddenimports = hidden_imports ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " netwatchpy"
7- version = " 1.2.2 "
7+ version = " 1.2.3 "
88authors = [
99 { name = " Pranav Kishan" , email = " ty.pranavkishan7905@gmail.com" }
1010]
You can’t perform that action at this time.
0 commit comments