Qwael 3.9.5__tar.gz → 3.9.6__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.
- {qwael-3.9.5 → qwael-3.9.6}/PKG-INFO +1 -1
- {qwael-3.9.5 → qwael-3.9.6}/Qwael/MultiDB.py +12 -2
- {qwael-3.9.5 → qwael-3.9.6}/Qwael.egg-info/PKG-INFO +1 -1
- {qwael-3.9.5 → qwael-3.9.6}/setup.py +1 -1
- {qwael-3.9.5 → qwael-3.9.6}/LICENSE +0 -0
- {qwael-3.9.5 → qwael-3.9.6}/Qwael/DR/304/260VE.py" +0 -0
- {qwael-3.9.5 → qwael-3.9.6}/Qwael/DoIP.py +0 -0
- {qwael-3.9.5 → qwael-3.9.6}/Qwael/__init__.py +0 -0
- {qwael-3.9.5 → qwael-3.9.6}/Qwael/filesz.py +0 -0
- {qwael-3.9.5 → qwael-3.9.6}/Qwael.egg-info/SOURCES.txt +0 -0
- {qwael-3.9.5 → qwael-3.9.6}/Qwael.egg-info/dependency_links.txt +0 -0
- {qwael-3.9.5 → qwael-3.9.6}/Qwael.egg-info/requires.txt +0 -0
- {qwael-3.9.5 → qwael-3.9.6}/Qwael.egg-info/top_level.txt +0 -0
- {qwael-3.9.5 → qwael-3.9.6}/README.md +0 -0
- {qwael-3.9.5 → qwael-3.9.6}/setup.cfg +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import os
|
|
2
2
|
import json
|
|
3
|
+
import time
|
|
3
4
|
|
|
4
5
|
# --- KIVY ANDROID DOSYA DESTEĞİ EKLENDİ ---
|
|
5
6
|
try:
|
|
@@ -16,7 +17,13 @@ class MultiDB:
|
|
|
16
17
|
# --- Android için doğru klasör ayarı ---
|
|
17
18
|
if platform == "android":
|
|
18
19
|
app = App.get_running_app()
|
|
19
|
-
|
|
20
|
+
|
|
21
|
+
if app:
|
|
22
|
+
# App çalışıyorsa user_data_dir kullan
|
|
23
|
+
filename = os.path.join(app.user_data_dir, filename)
|
|
24
|
+
else:
|
|
25
|
+
# App başlamamışsa geçici güvenli klasör
|
|
26
|
+
filename = os.path.join(os.getcwd(), filename)
|
|
20
27
|
# ---------------------------------------
|
|
21
28
|
|
|
22
29
|
self.filename = filename
|
|
@@ -30,6 +37,9 @@ class MultiDB:
|
|
|
30
37
|
# LOCK SYSTEM
|
|
31
38
|
# -----------------------------
|
|
32
39
|
def _lock(self):
|
|
40
|
+
while os.path.exists(self.lockfile):
|
|
41
|
+
time.sleep(0.05)
|
|
42
|
+
|
|
33
43
|
with open(self.lockfile, "w") as f:
|
|
34
44
|
f.write("locked")
|
|
35
45
|
|
|
@@ -347,7 +357,7 @@ class MultiDB:
|
|
|
347
357
|
|
|
348
358
|
lines = self._read()
|
|
349
359
|
tpos = self._find_table(lines, table)
|
|
350
|
-
if tpos == -1:
|
|
360
|
+
if tpos == - -1:
|
|
351
361
|
raise ValueError("Tablo bulunamadı!")
|
|
352
362
|
|
|
353
363
|
col_names = json.loads(lines[tpos + 1])
|
|
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
|
|
File without changes
|
|
File without changes
|