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 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
- if os.path.exists(file): zhmiscellany.fileio.empty_directory(file)
126
- else: zhmiscellany.fileio.create_folder(file)
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):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: kenenet
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: dude what the fuck even is this package
5
5
  Home-page: https://www.youtube.com/@KiddyKene
6
6
  Author: kiddykene
@@ -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,,
@@ -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,,