unisi 0.3.20__py3-none-any.whl → 0.3.21__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- unisi/reloader.py +6 -4
- {unisi-0.3.20.dist-info → unisi-0.3.21.dist-info}/METADATA +1 -1
- {unisi-0.3.20.dist-info → unisi-0.3.21.dist-info}/RECORD +6 -6
- {unisi-0.3.20.dist-info → unisi-0.3.21.dist-info}/WHEEL +0 -0
- {unisi-0.3.20.dist-info → unisi-0.3.21.dist-info}/entry_points.txt +0 -0
- {unisi-0.3.20.dist-info → unisi-0.3.21.dist-info}/licenses/LICENSE +0 -0
unisi/reloader.py
CHANGED
@@ -26,12 +26,12 @@ else:
|
|
26
26
|
else:
|
27
27
|
busy = False
|
28
28
|
|
29
|
-
def reload(sname):
|
29
|
+
def reload(sname, changed_dependency = False):
|
30
30
|
user = User.last_user
|
31
31
|
if user:
|
32
32
|
file = open(f'screens{divpath}{sname}', "r")
|
33
33
|
content = file.read()
|
34
|
-
if file_content[sname] == content:
|
34
|
+
if not changed_dependency and file_content[sname] == content:
|
35
35
|
return
|
36
36
|
file_content[sname] = content
|
37
37
|
|
@@ -85,7 +85,9 @@ else:
|
|
85
85
|
if name.endswith('.py'):
|
86
86
|
user = User.last_user
|
87
87
|
|
88
|
+
changed_dependency = False
|
88
89
|
if user.screen_module and dir not in ['screens','blocks']:
|
90
|
+
changed_dependency = True
|
89
91
|
#analyze if dependency exist
|
90
92
|
file = open(user.screen_module.__file__, "r")
|
91
93
|
arr[-1] = arr[-1][:-3]
|
@@ -105,12 +107,12 @@ else:
|
|
105
107
|
global request_file
|
106
108
|
request_file = short_path
|
107
109
|
else:
|
108
|
-
fresh_module = reload(name) if dir == 'screens' else None
|
110
|
+
fresh_module = reload(name, changed_dependency) if dir == 'screens' else None
|
109
111
|
module = user.screen_module
|
110
112
|
if module:
|
111
113
|
current = module.__file__
|
112
114
|
if not fresh_module or current != fresh_module.__file__:
|
113
|
-
reload(current.split(divpath)[-1])
|
115
|
+
reload(current.split(divpath)[-1], changed_dependency)
|
114
116
|
|
115
117
|
def on_deleted(self, event):
|
116
118
|
if not event.is_directory and User.last_user:
|
@@ -1,7 +1,7 @@
|
|
1
|
-
unisi-0.3.
|
2
|
-
unisi-0.3.
|
3
|
-
unisi-0.3.
|
4
|
-
unisi-0.3.
|
1
|
+
unisi-0.3.21.dist-info/METADATA,sha256=zEgUix_OED-fHXOFzfMveGsc49W_X_uRa6V6FW_wMjM,27266
|
2
|
+
unisi-0.3.21.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
|
3
|
+
unisi-0.3.21.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
4
|
+
unisi-0.3.21.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
5
5
|
unisi/__init__.py,sha256=prG4FwJzpNJRX1trto0x_4Bne3kkpEX1dUxcRnIxWVw,301
|
6
6
|
unisi/autotest.py,sha256=qYKwSPEPUEio6koUSu1tc71pDkX-doCQJlyRppaXCtY,8709
|
7
7
|
unisi/common.py,sha256=QHSS-pQDtLZxeZls0eDl8-EmYJZuaRmYO1M9izCly-Y,5791
|
@@ -17,7 +17,7 @@ unisi/kdb.py,sha256=K-Lqc3e9hLTwO0i1ilTC6qrwZp90tXjLm7HFb_lM1Os,13621
|
|
17
17
|
unisi/llmrag.py,sha256=Ra462DhayMtcFg-QnF8HdZQGQL3mplzUu7Y9WZTjssM,9413
|
18
18
|
unisi/multimon.py,sha256=YKwCuvMsMfdgOGkJoqiqh_9wywXMeo9bUhHmbAIUeSE,4060
|
19
19
|
unisi/proxy.py,sha256=QMHSSFJtmVZIexIMAsuFNlF5JpnYNG90rkTM3PYJhY4,7750
|
20
|
-
unisi/reloader.py,sha256=
|
20
|
+
unisi/reloader.py,sha256=t7z0NgaeJX52044ue_LxITa99WMuE5Jra9qkMEeGhTg,6941
|
21
21
|
unisi/server.py,sha256=owUV_siimohV-PZwMkkIRTnynY0wxpia2la3Vjqy9g8,6658
|
22
22
|
unisi/tables.py,sha256=IBuN9f4AF0SkN9uRPf2WWwdXgAzDnj46y0_C09iC2h4,13809
|
23
23
|
unisi/units.py,sha256=egOpf1I6ckAtBR9Lj2ot-RVyecIVmmuc5Rkwffl3y6A,11159
|
@@ -55,4 +55,4 @@ unisi/web/js/sigma.ce21336a.js,sha256=ngST-065XWOdnR_Xn7U6oGNHTL8fyiOEI9V8-BWRvl
|
|
55
55
|
unisi/web/js/sigma.ce21336a.js.gz,sha256=zv6oToZZFCfmrZ4G4fw0sOncVe8-dyYNWh2v5QLKZp4,51965
|
56
56
|
unisi/web/js/vendor.6a64dcc5.js,sha256=OSNK2nadU2DnSOEYQQcAmelybITOFZXMxnRyaDoT3yU,747104
|
57
57
|
unisi/web/js/vendor.6a64dcc5.js.gz,sha256=nmtqRzQRWaToxgHxI9hfJd3UrUCg2-fd-0Fjc4H4wu8,245827
|
58
|
-
unisi-0.3.
|
58
|
+
unisi-0.3.21.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|