kenenet 0.3.1__py3-none-any.whl → 0.3.2__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 +7 -3
- {kenenet-0.3.1.dist-info → kenenet-0.3.2.dist-info}/METADATA +1 -1
- kenenet-0.3.2.dist-info/RECORD +5 -0
- kenenet-0.3.1.dist-info/RECORD +0 -5
- {kenenet-0.3.1.dist-info → kenenet-0.3.2.dist-info}/WHEEL +0 -0
- {kenenet-0.3.1.dist-info → kenenet-0.3.2.dist-info}/top_level.txt +0 -0
kenenet/__init__.py
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
import inspect, sys, zhmiscellany, keyboard, mss, time, linecache, types, os
|
2
2
|
import numpy as np
|
3
3
|
from PIL import Image
|
4
|
-
global timings
|
4
|
+
global timings, ospid
|
5
|
+
ospid = None
|
5
6
|
timings = {}
|
6
7
|
|
7
8
|
def _quick_print(message, l=None):
|
@@ -122,8 +123,11 @@ def pp(msg='caca', subdir=None, pps=3):
|
|
122
123
|
os.chdir(os_current)
|
123
124
|
|
124
125
|
def save_img(img, name='', file='temp_screenshots'):
|
125
|
-
|
126
|
-
|
126
|
+
global ospid
|
127
|
+
if ospid is None:
|
128
|
+
if os.path.exists(file): zhmiscellany.fileio.empty_directory(file)
|
129
|
+
else: zhmiscellany.fileio.create_folder(file)
|
130
|
+
ospid = True
|
127
131
|
frame = inspect.currentframe().f_back
|
128
132
|
lineno = frame.f_lineno
|
129
133
|
if isinstance(img, np.ndarray):
|
@@ -0,0 +1,5 @@
|
|
1
|
+
kenenet/__init__.py,sha256=AdvYkPtf7zKAmh_6qs_sXsanUCmV_RFaLtvzlJ6ddQ8,5715
|
2
|
+
kenenet-0.3.2.dist-info/METADATA,sha256=OGQnX4dPx2hFFO9wCYAiwJnrrU-IhNIBpY0s3UioIe4,513
|
3
|
+
kenenet-0.3.2.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
4
|
+
kenenet-0.3.2.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
+
kenenet-0.3.2.dist-info/RECORD,,
|
kenenet-0.3.1.dist-info/RECORD
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
kenenet/__init__.py,sha256=LkhSQnZjdtyGRvOVAPP_-vEX8fHZnyFh4hGgruVKg-E,5627
|
2
|
-
kenenet-0.3.1.dist-info/METADATA,sha256=JZ846mPc_CN1nitMKhai6IpbaD4DhseHoNg0lPT5UkA,513
|
3
|
-
kenenet-0.3.1.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
4
|
-
kenenet-0.3.1.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
-
kenenet-0.3.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|