kenenet 0.4.5__py3-none-any.whl → 0.4.7__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.
- kenenet/__init__.py +9 -10
- {kenenet-0.4.5.dist-info → kenenet-0.4.7.dist-info}/METADATA +1 -1
- kenenet-0.4.7.dist-info/RECORD +5 -0
- kenenet-0.4.5.dist-info/RECORD +0 -5
- {kenenet-0.4.5.dist-info → kenenet-0.4.7.dist-info}/WHEEL +0 -0
- {kenenet-0.4.5.dist-info → kenenet-0.4.7.dist-info}/top_level.txt +0 -0
kenenet/__init__.py
CHANGED
@@ -131,16 +131,15 @@ def pp(msg='caca', subdir=None, pps=3):
|
|
131
131
|
quick_print('PP finished B======D')
|
132
132
|
os.chdir(os_current)
|
133
133
|
|
134
|
-
def save_img(img, name='', reset=True, file='temp_screenshots'):
|
134
|
+
def save_img(img, name=' ', reset=True, file='temp_screenshots', mute=False):
|
135
135
|
global ospid
|
136
|
-
if
|
137
|
-
if
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
zhmiscellany.fileio.create_folder(file)
|
136
|
+
if os.path.exists(file):
|
137
|
+
if reset and ospid is None:
|
138
|
+
zhmiscellany.fileio.empty_directory(file)
|
139
|
+
quick_print(f'Cleaned folder {file}')
|
140
|
+
else:
|
141
|
+
quick_print(f'New folder created {file}')
|
142
|
+
zhmiscellany.fileio.create_folder(file)
|
144
143
|
ospid = True
|
145
144
|
frame = inspect.currentframe().f_back
|
146
145
|
lineno = frame.f_lineno
|
@@ -148,7 +147,7 @@ def save_img(img, name='', reset=True, file='temp_screenshots'):
|
|
148
147
|
save_name = name + f'{time.time()}'
|
149
148
|
img = Image.fromarray(img)
|
150
149
|
img.save(fr'{file}\{save_name}.png')
|
151
|
-
quick_print(f'Saved image as {save_name}', lineno)
|
150
|
+
if not mute: quick_print(f'Saved image as {save_name}', lineno)
|
152
151
|
else:
|
153
152
|
quick_print(f"Your img is not a fucking numpy array you twat, couldn't save {name}", lineno)
|
154
153
|
|
@@ -0,0 +1,5 @@
|
|
1
|
+
kenenet/__init__.py,sha256=vJt7E0HsbvWtXvt8dEKjYGzQI0EhhPCzaNz6yR9wcQQ,6660
|
2
|
+
kenenet-0.4.7.dist-info/METADATA,sha256=tdLr-XGfLjvoe4EoPZ8nIyz2Ahu0bycv7jDNwuPb3k0,633
|
3
|
+
kenenet-0.4.7.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
+
kenenet-0.4.7.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
+
kenenet-0.4.7.dist-info/RECORD,,
|
kenenet-0.4.5.dist-info/RECORD
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
kenenet/__init__.py,sha256=d6IwZtpzd09ZIR5DrSQzxOemwi93nLEaJtzGxbrUMFw,6667
|
2
|
-
kenenet-0.4.5.dist-info/METADATA,sha256=_Fk1SarqmPxKL_HghN9y_SH1XZDR5fne9KShnDJ6P64,633
|
3
|
-
kenenet-0.4.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
-
kenenet-0.4.5.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
-
kenenet-0.4.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|