pyloid 0.23.16__tar.gz → 0.23.17__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyloid
3
- Version: 0.23.16
3
+ Version: 0.23.17
4
4
  Summary:
5
5
  Author: aesthetics-of-record
6
6
  Author-email: 111675679+aesthetics-of-record@users.noreply.github.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyloid"
3
- version = "0.23.16"
3
+ version = "0.23.17"
4
4
  description = ""
5
5
  authors = ["aesthetics-of-record <111675679+aesthetics-of-record@users.noreply.github.com>"]
6
6
  readme = "README.md"
@@ -877,8 +877,6 @@ class _BrowserWindow:
877
877
  self.dev_tools_window.setCentralWidget(dev_tools_view)
878
878
  self.dev_tools_window.resize(800, 600)
879
879
  self.dev_tools_window.show()
880
-
881
- # Add this line to handle dev tools window closure
882
880
  self.dev_tools_window.closeEvent = lambda event: setattr(
883
881
  self, "dev_tools_window", None
884
882
  )
@@ -29,13 +29,11 @@ from PySide6.QtCore import QCoreApplication
29
29
  from PySide6.QtCore import Signal, QObject, Slot
30
30
  import uuid
31
31
  from PySide6.QtCore import QEventLoop
32
- import socket
33
32
  from typing import Any, Set
34
33
  from platformdirs import PlatformDirs
35
34
  from .store import Store
36
35
  from .rpc import PyloidRPC
37
36
  import threading
38
- import asyncio
39
37
  import signal
40
38
 
41
39
  # software backend
@@ -51,12 +49,12 @@ original_signal = signal.signal
51
49
  def safe_set_wakeup_fd(fd, *args, **kwargs):
52
50
  if threading.current_thread() is threading.main_thread():
53
51
  return original_set_wakeup_fd(fd, *args, **kwargs)
54
- return -1 # 메인 스레드가 아닌 경우 아무것도 하지 않고 -1 반환
52
+ return -1 # If not in main thread, do nothing and return -1
55
53
 
56
54
  def safe_signal(signalnum, handler):
57
55
  if threading.current_thread() is threading.main_thread():
58
56
  return original_signal(signalnum, handler)
59
- return None # 메인 스레드가 아닌 경우 아무것도 하지 않음
57
+ return None # If not in main thread, do nothing
60
58
 
61
59
  signal.set_wakeup_fd = safe_set_wakeup_fd
62
60
  signal.signal = safe_signal
@@ -1,3 +1,4 @@
1
+ import os
1
2
  from pickledb import PickleDB
2
3
  from typing import Any, List, Optional
3
4
 
@@ -16,6 +17,7 @@ class Store:
16
17
  --------
17
18
  >>> store = Store("data.json")
18
19
  """
20
+ os.makedirs(os.path.dirname(path), exist_ok=True)
19
21
  self.db = PickleDB(path)
20
22
 
21
23
  def get(self, key: str) -> Any:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes