Die Welt ist ein eigener Baum: Projects/pokersim

pokersim (Klon, Cockpit, Ansicht, Leser, Mitschriebe) steht jetzt getrennt neben der Engine.
Der Grund, warum es vorher nicht allein stehen konnte, ist behoben:

  * client/ (Adresse des Clients und seine zwei Sockets) liegt nicht mehr in hand/ - beide Seiten
    finden es ueber die Naht; die Engine braucht dafuer nichts aus der Welt zu importieren
  * die Wurzelmarke aller Dateien ist "lesen" statt "hand": damit findet jede Datei ihre Wurzel,
    egal in welchem der beiden Baeume sie steht (126 Stellen)
  * werkzeuge/hof.py kann beide Baeume bauen: HOF_ART=welt -> Projects/pokersim (Welt),
    ohne -> Projects/pokerfreak-sim (Welt und Engine). Die Welt waehlt ihre Pruefungen nach
    IMPORTEN (Prosa darf die gedockte Engine nennen), der volle Hof nach Erwaehnungen.

Abnahme: Engine-Baum schneller Lauf 1444 Faelle (1 Flatterer, allein gruen); Welt-Baum 38 Pruefungen
333 Faelle rot 0, Bericht 9 Stellen. swift run Pruefung 132 gruen.
This commit is contained in:
2026-11-01 13:26:32 +01:00
parent dd8662b64c
commit fa08779833
127 changed files with 273 additions and 183 deletions
+1
View File
@@ -22,6 +22,7 @@ import time
HIER = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.join(os.path.dirname(HIER), "hand"))
sys.path.insert(0, os.path.join(os.path.dirname(HIER), "client"))
import zeiger # noqa: E402
+2 -2
View File
@@ -64,10 +64,10 @@ POKERFREAK_RATHOLING=1, nach grossem Gewinn. Zwei Fenster auf denselben Raum: da
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "hand")):
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb"):
_q = _os.path.join(_w, _u)
if _os.path.isdir(_q) and _q not in _sys.path:
_sys.path.insert(0, _q)
+2 -2
View File
@@ -22,10 +22,10 @@ Ereignisarten, die `kennzahlen` versteht: "sitzung_start"/"sitzung_ende" (Paar j
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "hand")):
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb"):
_q = _os.path.join(_w, _u)
if _os.path.isdir(_q) and _q not in _sys.path:
_sys.path.insert(0, _q)
+1 -1
View File
@@ -13,7 +13,7 @@ import time
BASE = os.path.dirname(os.path.abspath(__file__))
WURZEL = os.path.dirname(BASE)
for _u in ("sicht", "lesen", "entscheiden", "hand"):
for _u in ("sicht", "lesen", "entscheiden", "hand", "client"):
_q = os.path.join(WURZEL, _u)
if _q not in sys.path:
sys.path.insert(0, _q)
View File
+2 -2
View File
@@ -5,10 +5,10 @@
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "hand")):
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb"):
_q = _os.path.join(_w, _u)
if _os.path.isdir(_q) and _q not in _sys.path:
_sys.path.insert(0, _q)
+2 -2
View File
@@ -11,10 +11,10 @@ Sicherungen:
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "hand")):
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb"):
_q = _os.path.join(_w, _u)
if _os.path.isdir(_q) and _q not in _sys.path:
_sys.path.insert(0, _q)
+2 -2
View File
@@ -17,9 +17,9 @@ import sys
import time
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
for _u in ("hand", "lesen"):
for _u in ("hand", "client", "lesen"):
_q = os.path.join(_w, _u)
if _q not in sys.path:
sys.path.insert(0, _q)
+8
View File
@@ -28,6 +28,14 @@ import json
import os
import time
# client/ ist die Naht (Adresse und Sockets): unabhaengig vom Aufrufer auffindbar
import sys
_wurzel = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
for _u in ("client", "hand"):
_c = os.path.join(_wurzel, _u)
if os.path.isdir(_c) and _c not in sys.path:
sys.path.append(_c)
import pipe
# Was der Client in `roomProperties` selbst schickt (aus der Log-Zeile) - und was die API dafuer
+2 -2
View File
@@ -13,10 +13,10 @@ macht also nichts.
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "hand")):
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb"):
_q = _os.path.join(_w, _u)
if _os.path.isdir(_q) and _q not in _sys.path:
_sys.path.insert(0, _q)
+2 -2
View File
@@ -20,10 +20,10 @@ Ohne Band (`band=None`) gilt der alte Aufbau:
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "hand")):
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb"):
_q = _os.path.join(_w, _u)
if _os.path.isdir(_q) and _q not in _sys.path:
_sys.path.insert(0, _q)
+2 -2
View File
@@ -28,10 +28,10 @@ Schließen - erst der generische Weg, dann die Stelle:
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "hand")):
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "hand", "betrieb"):
for _u in ("lesen", "hand", "client", "betrieb"):
_q = _os.path.join(_w, _u)
if _os.path.isdir(_q) and _q not in _sys.path:
_sys.path.insert(0, _q)
+2 -2
View File
@@ -15,10 +15,10 @@ COINPOKER_KLON_GLEICHE_TITEL=1 auch der Titel genau "CoinPoker" - ohne Nummer, a
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "hand")):
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb"):
_q = _os.path.join(_w, _u)
if _os.path.isdir(_q) and _q not in _sys.path:
_sys.path.insert(0, _q)
+2 -2
View File
@@ -9,10 +9,10 @@ Regionsaufnahmen zeigen, was vorne liegt. Über die Fensterkennung holt
import ctypes
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "hand")):
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
WURZEL = _w
for _u in ("hand", "lesen"):
for _u in ("hand", "client", "lesen"):
_q = _os.path.join(_w, _u)
if _os.path.isdir(_q) and _q not in _sys.path:
_sys.path.insert(0, _q)
+2 -2
View File
@@ -23,9 +23,9 @@ import threading
import time
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
for _u in ("hand", "lesen"):
for _u in ("hand", "client", "lesen"):
_q = os.path.join(_w, _u)
if _q not in sys.path:
sys.path.insert(0, _q)
+2 -1
View File
@@ -23,11 +23,12 @@ import sys
import time
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
if _w not in sys.path:
sys.path.insert(0, _w)
sys.path.insert(0, os.path.join(_w, "hand"))
sys.path.insert(0, os.path.join(_w, "client"))
import pipe
+2 -2
View File
@@ -21,10 +21,10 @@ bewegen und klicken (Sperre je Seite).
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "hand")):
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb"):
_q = _os.path.join(_w, _u)
if _os.path.isdir(_q) and _q not in _sys.path:
_sys.path.insert(0, _q)
+1 -1
View File
@@ -8,7 +8,7 @@ import json
import os
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
WURZEL = _w
+2 -2
View File
@@ -7,10 +7,10 @@
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "hand")):
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb"):
_q = _os.path.join(_w, _u)
if _os.path.isdir(_q) and _q not in _sys.path:
_sys.path.insert(0, _q)
+2 -2
View File
@@ -39,10 +39,10 @@ vermessen, Guthaben unter Min) heisst aussetzen - mit Grund.
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "hand")):
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb"):
_q = _os.path.join(_w, _u)
if _os.path.isdir(_q) and _q not in _sys.path:
_sys.path.insert(0, _q)
+2 -2
View File
@@ -16,9 +16,9 @@ import os as _os
import sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "hand")):
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
for _u in ("hand", "lesen"):
for _u in ("hand", "client", "lesen"):
_q = _os.path.join(_w, _u)
if _q not in _sys.path:
_sys.path.insert(0, _q)
+2 -1
View File
@@ -19,11 +19,12 @@ import sys
import time
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
if _w not in sys.path:
sys.path.insert(0, _w)
sys.path.insert(0, os.path.join(_w, "hand"))
sys.path.insert(0, os.path.join(_w, "client"))
import click # noqa: E402 (Fenster nach vorn, CGEvent-Zugang)
+2 -2
View File
@@ -9,10 +9,10 @@ dasselbe sagen. Null Toleranz: Bewertung ist reine Bestimmung.
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "hand")):
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb"):
_q = _os.path.join(_w, _u)
if _os.path.isdir(_q) and _q not in _sys.path:
_sys.path.insert(0, _q)
+1 -1
View File
@@ -30,7 +30,7 @@ import re
import sys
WURZEL = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb"):
_q = os.path.join(WURZEL, _u)
if os.path.isdir(_q) and _q not in sys.path:
sys.path.insert(0, _q)
+2 -2
View File
@@ -9,10 +9,10 @@ Bytes an eine Kopie im Ordner korpus/ und merkt sich den Stand.
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "hand")):
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb"):
_q = _os.path.join(_w, _u)
if _os.path.isdir(_q) and _q not in _sys.path:
_sys.path.insert(0, _q)
+2 -2
View File
@@ -39,10 +39,10 @@ hoechsten Einsatz der Strasse uebersteigt).
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "hand")):
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb"):
_q = _os.path.join(_w, _u)
if _os.path.isdir(_q) and _q not in _sys.path:
_sys.path.insert(0, _q)
+2 -2
View File
@@ -8,10 +8,10 @@ Bedenkzeit, Aktionsmenü, Sonderfälle. Grundlage für die Reihenfolge des Baus.
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "hand")):
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb"):
_q = _os.path.join(_w, _u)
if _os.path.isdir(_q) and _q not in _sys.path:
_sys.path.insert(0, _q)
+2 -2
View File
@@ -8,10 +8,10 @@ Fasst nichts an: kein Klick, keine Verbindung, nur die Logdatei des Clients.
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "hand")):
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb"):
_q = _os.path.join(_w, _u)
if _os.path.isdir(_q) and _q not in _sys.path:
_sys.path.insert(0, _q)
+2 -2
View File
@@ -119,10 +119,10 @@ Turnier (Spezifikation: tests/turnier_anfrage_spec.py, Lage: lesen/turnier.py):
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "hand")):
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb"):
_q = _os.path.join(_w, _u)
if _os.path.isdir(_q) and _q not in _sys.path:
_sys.path.insert(0, _q)
+2 -2
View File
@@ -69,10 +69,10 @@ Unklar heisst None - nie geraten. `fehlend` nennt die Luecken.
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "hand")):
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb"):
_q = _os.path.join(_w, _u)
if _os.path.isdir(_q) and _q not in _sys.path:
_sys.path.insert(0, _q)
+1 -1
View File
@@ -33,7 +33,7 @@ import os
import sys
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
sys.path.insert(0, os.path.join(_w, "lesen"))
+9 -1
View File
@@ -5,10 +5,18 @@ Hängt an jede MCP-Antwort den Rohzustand (Log-Zeilen, Fenster, Ports, letzte En
import json
import os
# client/ ist die Naht (Adresse und Sockets): unabhaengig vom Aufrufer auffindbar
import sys
_wurzel = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
for _u in ("client", "hand"):
_c = os.path.join(_wurzel, _u)
if os.path.isdir(_c) and _c not in sys.path:
sys.path.append(_c)
import umgebung
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
WURZEL = _w
+2 -2
View File
@@ -14,10 +14,10 @@ import time
import urllib.request
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb", "mcp"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb", "mcp"):
_q = os.path.join(_w, _u)
if os.path.isdir(_q) and _q not in sys.path:
sys.path.append(_q)
+1 -1
View File
@@ -11,7 +11,7 @@ import subprocess
import time
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
WURZEL = _w
+1 -1
View File
@@ -22,7 +22,7 @@ import sys
import time
_w = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
for _u in ("mcp", "hand"):
for _u in ("mcp", "hand", "client"):
_q = os.path.join(_w, _u)
if _q not in sys.path:
sys.path.insert(0, _q)
+2 -2
View File
@@ -18,10 +18,10 @@ import time
from typing import Optional
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb", "mcp"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb", "mcp"):
_q = os.path.join(_w, _u)
if os.path.isdir(_q) and _q not in sys.path:
sys.path.append(_q)
+2 -1
View File
@@ -6,12 +6,13 @@ und verhindert Klick-Aktionen bei aktivem Not-Aus.
import os
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
WURZEL = _w
import sys
sys.path.insert(0, os.path.join(WURZEL, "hand"))
sys.path.insert(0, os.path.join(WURZEL, "client"))
import notaus # noqa: E402 eine Quelle für die Stopp-Dateien
STOPP_PFADE = notaus.PFADE
+6
View File
@@ -41,6 +41,12 @@ for _p in (_W, os.path.join(_W, "hand")):
if _p not in sys.path:
sys.path.insert(0, _p)
# client/ ist die Naht (Adresse und Sockets): unabhaengig vom Aufrufer auffindbar
_wurzel = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
for _u in ("client", "hand"):
_c = os.path.join(_wurzel, _u)
if os.path.isdir(_c) and _c not in sys.path:
sys.path.append(_c)
import pipe
TOKEN = "klon-fbtoken"
+1
View File
@@ -58,6 +58,7 @@ import urllib.request
HIER = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, HIER)
sys.path.insert(1, os.path.join(os.path.dirname(HIER), "hand"))
sys.path.insert(0, os.path.join(os.path.dirname(HIER), "client"))
import cdp
import lagen
+2 -2
View File
@@ -13,10 +13,10 @@ import subprocess
import sys
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
WURZEL = _w
for _u in ("lobby", "lesen", "hand"):
for _u in ("lobby", "lesen", "hand", "client"):
_q = os.path.join(_w, _u)
if os.path.isdir(_q) and _q not in sys.path:
sys.path.insert(0, _q)
+2 -2
View File
@@ -16,9 +16,9 @@ import sys
import time
_w = os.path.dirname(os.path.abspath(__file__))
while os.path.dirname(_w) != _w and not os.path.isdir(os.path.join(_w, "hand")):
while os.path.dirname(_w) != _w and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
for _u in ("lesen", "entscheiden", "hand", "betrieb"):
for _u in ("lesen", "entscheiden", "hand", "client", "betrieb"):
_q = os.path.join(_w, _u)
if os.path.isdir(_q) and _q not in sys.path:
sys.path.append(_q)
+2 -2
View File
@@ -30,10 +30,10 @@ import threading
import time
_w = os.path.dirname(os.path.abspath(__file__))
while os.path.dirname(_w) != _w and not os.path.isdir(os.path.join(_w, "hand")):
while os.path.dirname(_w) != _w and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "betrieb", "mcp", "lobby"):
for _u in ("lesen", "entscheiden", "hand", "client", "betrieb", "mcp", "lobby"):
_q = os.path.join(_w, _u)
if os.path.isdir(_q) and _q not in sys.path:
sys.path.append(_q)
+1 -1
View File
@@ -23,7 +23,7 @@ import time
HIER = os.path.dirname(os.path.abspath(__file__))
WURZEL = os.path.dirname(HIER)
for _u in ("hand",):
for _u in ("hand", "client",):
_q = os.path.join(WURZEL, _u)
if _q not in sys.path:
sys.path.append(_q)
+6
View File
@@ -22,6 +22,12 @@ WURZEL = os.path.dirname(HIER)
if os.path.join(WURZEL, "hand") not in sys.path:
sys.path.append(os.path.join(WURZEL, "hand"))
# client/ ist die Naht (Adresse und Sockets): unabhaengig vom Aufrufer auffindbar
_wurzel = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
for _u in ("client", "hand"):
_c = os.path.join(_wurzel, _u)
if os.path.isdir(_c) and _c not in sys.path:
sys.path.append(_c)
import umgebung # noqa: E402
COCKPIT = os.path.join(umgebung.treffpunkt(), "cockpit.json") # Naht: das Panel liest das # Rahmen des Cockpits (das Panel der Cockpit-App)
LEISTE = 460 # so breit bleibt rechts frei, wenn die Leiste ihren Rahmen nicht meldet
+1 -1
View File
@@ -6,7 +6,7 @@ Namensform. Damit bekommt ein gescheiterter Klick einen Grund statt "hat nicht g
"""
import os, sys, unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")): _w = os.path.dirname(_w)
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")): _w = os.path.dirname(_w)
sys.path.append(os.path.join(_w, "hand"))
import antworten
+1 -1
View File
@@ -8,7 +8,7 @@ import sys
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
sys.path.insert(0, os.path.join(_w, "lobby"))
+2 -1
View File
@@ -11,9 +11,10 @@ import sys
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
sys.path.insert(0, os.path.join(_w, "hand"))
sys.path.insert(0, os.path.join(_w, "client"))
import befehle
+1 -1
View File
@@ -19,7 +19,7 @@ _hier = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, _hier)
from klonlauf import WURZEL, Klonlauf, warte # noqa: E402
for _u in ("betrieb", "hand"):
for _u in ("betrieb", "hand", "client"):
sys.path.insert(0, os.path.join(WURZEL, _u))
import cdp # noqa: E402
import fenster # noqa: E402
+1 -1
View File
@@ -20,7 +20,7 @@ from unittest import mock
_w = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
HIER = os.path.join(_w, "tests")
for _u in ("lesen", "entscheiden", "lobby", "korpus", "betrieb", "hand"):
for _u in ("lesen", "entscheiden", "lobby", "korpus", "betrieb", "hand", "client"):
sys.path.insert(0, os.path.join(_w, _u))
sys.path.append(os.path.join(_w, "mock"))
sys.path.insert(0, HIER)
+2 -2
View File
@@ -16,9 +16,9 @@ import sys
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
for _u in ("hand", "lesen"):
for _u in ("hand", "client", "lesen"):
_q = os.path.join(_w, _u)
if _q not in sys.path:
sys.path.insert(0, _q)
+1
View File
@@ -27,6 +27,7 @@ os.environ["POKERFREAK_PIPE_TMP"] = TMP
from klonlauf import Klonlauf, warte # noqa: E402
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "hand"))
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "client"))
import kanal # noqa: E402
import pipe # noqa: E402
+2 -2
View File
@@ -9,10 +9,10 @@ gelegentliche lange Pause, Wandern über die Sitzung, Uhr-Grenze, Seed.
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "hand")):
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb"):
_q = _os.path.join(_w, _u)
if _os.path.isdir(_q) and _q not in _sys.path:
_sys.path.insert(0, _q)
+1 -1
View File
@@ -9,7 +9,7 @@ import zlib
W = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
os.environ.setdefault("COINPOKER_MOCK", "1") # act laedt dann klonmaus statt click.py (ohne Mac)
for _u in ("hand", "lesen", "betrieb"):
for _u in ("hand", "client", "lesen", "betrieb"):
sys.path.insert(0, os.path.join(W, _u))
import tempfile # noqa: E402
+1 -1
View File
@@ -36,7 +36,7 @@ import urllib.request
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "mock")):
_w = os.path.dirname(_w)
for _u in ("lesen", "hand", "mock"):
for _u in ("lesen", "hand", "client", "mock"):
_q = os.path.join(_w, _u)
if os.path.isdir(_q) and _q not in sys.path:
sys.path.insert(0, _q)
+2 -2
View File
@@ -12,9 +12,9 @@ import sys
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
for _u in ("hand", "betrieb", "mcp", "lobby", "lesen"):
for _u in ("hand", "client", "betrieb", "mcp", "lobby", "lesen"):
sys.path.insert(0, os.path.join(_w, _u))
import eingabe
+1 -1
View File
@@ -18,7 +18,7 @@ import sys
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
sys.path.insert(0, os.path.join(_w, "lesen"))
+1 -1
View File
@@ -16,7 +16,7 @@ import sys
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
sys.path.append(os.path.join(_w, "lesen"))
+2 -2
View File
@@ -12,9 +12,9 @@ import sys
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
for _u in ("hand",):
for _u in ("hand", "client",):
_q = os.path.join(_w, _u)
if os.path.isdir(_q):
sys.path.append(_q)
+1 -1
View File
@@ -2,7 +2,7 @@
"""Spezifikation: Konto- und Raumstatus aus Kommandozeile und Log (hand/fraud.py)."""
import os, sys, unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")): _w = os.path.dirname(_w)
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")): _w = os.path.dirname(_w)
sys.path.append(os.path.join(_w, "hand"))
import fraud
+1 -1
View File
@@ -2,7 +2,7 @@
"""Spezifikation: Leser aus den Code-Funden (Tischregeln, Marken, EV-Chop, Einstellungen)."""
import os, sys, unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")): _w = os.path.dirname(_w)
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")): _w = os.path.dirname(_w)
sys.path.append(os.path.join(_w, "lesen"))
import einstellungen, evchop, tags, tischregeln
+1 -1
View File
@@ -15,7 +15,7 @@ import sys
import unittest
_u = os.path.dirname(os.path.abspath(__file__))
while _u != "/" and not os.path.isdir(os.path.join(_u, "hand")):
while _u != "/" and not os.path.isdir(os.path.join(_u, "lesen")):
_u = os.path.dirname(_u)
for p in (os.path.join(_u, "lesen"), os.path.join(_u, "hand")):
sys.path.insert(0, p)
+1 -1
View File
@@ -15,7 +15,7 @@ import sys
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
sys.path.insert(0, os.path.join(_w, "lesen"))
+1 -1
View File
@@ -18,7 +18,7 @@ import sys
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
sys.path.insert(0, os.path.join(_w, "betrieb"))
sys.path.insert(0, os.path.join(_w, "lesen"))
+1 -1
View File
@@ -18,7 +18,7 @@ import sys
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
sys.path.append(os.path.join(_w, "lesen"))
+2 -2
View File
@@ -9,9 +9,9 @@ import time
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
for _u in ("hand", "lesen"):
for _u in ("hand", "client", "lesen"):
sys.path.insert(0, os.path.join(_w, _u))
import hudquelle
+1 -1
View File
@@ -20,7 +20,7 @@ import tempfile
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
sys.path.insert(0, os.path.join(_w, "betrieb"))
+2 -1
View File
@@ -11,9 +11,10 @@ import sys
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
sys.path.insert(0, os.path.join(_w, "hand"))
sys.path.insert(0, os.path.join(_w, "client"))
import kanal
+2 -2
View File
@@ -13,9 +13,9 @@ import sys
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
for _u in ("entscheiden", "hand"):
for _u in ("entscheiden", "hand", "client"):
_q = os.path.join(_w, _u)
if os.path.isdir(_q):
sys.path.append(_q)
+2 -2
View File
@@ -14,9 +14,9 @@ import sys
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
for _u in ("hand", "lesen"):
for _u in ("hand", "client", "lesen"):
sys.path.insert(0, os.path.join(_w, _u))
import click
+1
View File
@@ -13,6 +13,7 @@ import sys
import unittest
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "hand"))
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "client"))
import click
+1 -1
View File
@@ -25,7 +25,7 @@ import urllib.parse
import urllib.request
WURZEL = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
for _u in ("betrieb", "mcp", "mock", "hand", "lesen", "lobby"):
for _u in ("betrieb", "mcp", "mock", "hand", "client", "lesen", "lobby"):
_q = os.path.join(WURZEL, _u)
if _q not in sys.path:
sys.path.insert(0, _q)
+1 -1
View File
@@ -14,7 +14,7 @@ import sys
import unittest
_w = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
for _u in ("hand", "mock"):
for _u in ("hand", "client", "mock"):
sys.path.insert(0, os.path.join(_w, _u))
import klonmaus
+2 -2
View File
@@ -36,9 +36,9 @@ import types
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
for _u in ("hand", "lesen", "betrieb", "entscheiden"):
for _u in ("hand", "client", "lesen", "betrieb", "entscheiden"):
sys.path.insert(0, os.path.join(_w, _u))
TEXT = gzip.open(os.path.join(_w, "archiv", "mitschrieb", "main.6.log.gz"), "rt",
+2 -2
View File
@@ -29,9 +29,9 @@ import unittest
from unittest import mock
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
for _u in ("mock", "lesen", "entscheiden", "hand"):
for _u in ("mock", "lesen", "entscheiden", "hand", "client"):
sys.path.insert(0, os.path.join(_w, _u))
import decide
+2 -2
View File
@@ -29,10 +29,10 @@ import tempfile
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand"):
for _u in ("lesen", "entscheiden", "hand", "client"):
sys.path.insert(0, os.path.join(_w, _u))
import decide
+1 -1
View File
@@ -12,7 +12,7 @@ import sys
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
sys.path.insert(0, os.path.join(_w, "mcp"))
+2 -2
View File
@@ -18,9 +18,9 @@ import sys
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
for _u in ("mcp", "hand", "lesen", "lobby"):
for _u in ("mcp", "hand", "client", "lesen", "lobby"):
sys.path.insert(0, os.path.join(_w, _u))
import lobby_adapter as la
+2 -1
View File
@@ -15,9 +15,10 @@ import sys
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
sys.path.insert(0, os.path.join(_w, "hand"))
sys.path.insert(0, os.path.join(_w, "client"))
import maus
+2 -2
View File
@@ -16,10 +16,10 @@ import unittest
from unittest.mock import MagicMock, patch
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "lobby", "korpus", "betrieb", "mcp"):
for _u in ("lesen", "entscheiden", "hand", "client", "lobby", "korpus", "betrieb", "mcp"):
_q = os.path.join(_w, _u)
if os.path.isdir(_q) and _q not in sys.path:
sys.path.append(_q)
+2 -2
View File
@@ -60,10 +60,10 @@ import urllib.parse
import urllib.request
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
WURZEL = _w
for _u in ("hand", "lesen", "mcp", "mock"):
for _u in ("hand", "client", "lesen", "mcp", "mock"):
_q = os.path.join(_w, _u)
if os.path.isdir(_q):
sys.path.append(_q)
+2 -2
View File
@@ -13,10 +13,10 @@ import tempfile
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
WURZEL = _w
for _u in ("hand", "lesen", "betrieb"):
for _u in ("hand", "client", "lesen", "betrieb"):
_q = os.path.join(_w, _u)
if os.path.isdir(_q):
sys.path.append(_q)
+2 -2
View File
@@ -20,9 +20,9 @@ import tempfile
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
for _u in ("hand", "lesen", "mcp"):
for _u in ("hand", "client", "lesen", "mcp"):
sys.path.insert(0, os.path.join(_w, _u))
import act
+2 -1
View File
@@ -18,9 +18,10 @@ import tempfile
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
sys.path.insert(0, os.path.join(_w, "hand"))
sys.path.insert(0, os.path.join(_w, "client"))
import notaus
+2 -1
View File
@@ -16,9 +16,10 @@ import tempfile
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
sys.path.insert(0, os.path.join(_w, "hand"))
sys.path.insert(0, os.path.join(_w, "client"))
import pipe
+1 -1
View File
@@ -25,7 +25,7 @@ import urllib.request
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "mock")):
_w = os.path.dirname(_w)
for _u in ("lesen", "hand", "mock"):
for _u in ("lesen", "hand", "client", "mock"):
_q = os.path.join(_w, _u)
if os.path.isdir(_q) and _q not in sys.path:
sys.path.insert(0, _q)
+1 -1
View File
@@ -2,7 +2,7 @@
"""Spezifikation: gezahlter Rake aus dem Log (lesen/rake.py)."""
import os, sys, unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")): _w = os.path.dirname(_w)
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")): _w = os.path.dirname(_w)
sys.path.append(os.path.join(_w, "lesen"))
import rake
+1 -1
View File
@@ -2,7 +2,7 @@
"""Spezifikation: Rakeback und Netto (lesen/geld.py) sowie schwarze Stunden (hand/fraud.py)."""
import os, sys, unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")): _w = os.path.dirname(_w)
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")): _w = os.path.dirname(_w)
sys.path.append(os.path.join(_w, "lesen")); sys.path.append(os.path.join(_w, "hand"))
import fraud, geld
+4 -3
View File
@@ -11,10 +11,10 @@ import sys
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
WURZEL = _w
for _u in ("hand", "lesen", "betrieb", "sicht", "mock"):
for _u in ("hand", "client", "lesen", "betrieb", "sicht", "mock"):
_q = os.path.join(WURZEL, _u)
if _q not in sys.path:
sys.path.insert(0, _q)
@@ -113,8 +113,9 @@ class Befehl(unittest.TestCase):
"""5. Die Welt startet die Engine - als Kommando, nicht als Pfad."""
def test_engine_ist_ein_kommando(self):
# Die Vorgabe zeigt in den eigenen Baum; in der Welt zeigt POKERFREAK_ENGINE daneben.
self.assertIn("runner.py", steuern.ENGINE)
self.assertTrue(os.path.exists(steuern.ENGINE.split()[-1]), steuern.ENGINE)
self.assertEqual(steuern.engine_befehl()[-1], "--act")
def test_engine_ist_uebersteuerbar(self):
alt = os.environ.get("POKERFREAK_ENGINE")
+1 -1
View File
@@ -16,7 +16,7 @@ import types
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while os.path.dirname(_w) != _w and not os.path.isdir(os.path.join(_w, "hand")):
while os.path.dirname(_w) != _w and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
sys.path.insert(0, os.path.join(_w, "sicht"))
+1 -1
View File
@@ -20,7 +20,7 @@ import time
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
sys.path.insert(0, os.path.join(_w, "sicht"))
sys.path.insert(0, os.path.join(_w, "betrieb"))
+1 -1
View File
@@ -10,7 +10,7 @@ import unittest
W = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
os.environ.setdefault("COINPOKER_MOCK", "1") # act laedt dann klonmaus statt click.py
for _u in ("sicht", "hand", "lesen", "betrieb"):
for _u in ("sicht", "hand", "client", "lesen", "betrieb"):
sys.path.insert(0, os.path.join(W, _u))
import act
+2 -2
View File
@@ -19,9 +19,9 @@ import sys
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
for _u in ("sicht", "lesen", "betrieb", "hand"):
for _u in ("sicht", "lesen", "betrieb", "hand", "client"):
sys.path.insert(0, os.path.join(_w, _u))
import ansicht
+1 -1
View File
@@ -15,7 +15,7 @@ import tempfile
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
for _u in ("sicht", "betrieb", "lesen"):
sys.path.insert(0, os.path.join(_w, _u))
+2 -2
View File
@@ -12,9 +12,9 @@ import sys
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
for _u in ("hand", "lesen"):
for _u in ("hand", "client", "lesen"):
sys.path.insert(0, os.path.join(_w, _u))
import geld
+1 -1
View File
@@ -16,7 +16,7 @@ import tempfile
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
sys.path.insert(0, os.path.join(_w, "betrieb"))
+2 -2
View File
@@ -17,9 +17,9 @@ import sys
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
for _u in ("betrieb", "lesen", "hand"):
for _u in ("betrieb", "lesen", "hand", "client"):
sys.path.insert(0, os.path.join(_w, _u))
import formate
+1 -1
View File
@@ -18,7 +18,7 @@ import tempfile
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
sys.path.insert(0, os.path.join(_w, "betrieb"))
sys.path.insert(0, os.path.join(_w, "lesen"))
+2 -2
View File
@@ -12,9 +12,9 @@ import sys
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
for _u in ("hand", "mcp"):
for _u in ("hand", "client", "mcp"):
sys.path.insert(0, os.path.join(_w, _u))
import dialog
+2 -2
View File
@@ -24,9 +24,9 @@ import types
import unittest
_w = os.path.dirname(os.path.abspath(__file__))
while _w != "/" and not os.path.isdir(os.path.join(_w, "hand")):
while _w != "/" and not os.path.isdir(os.path.join(_w, "lesen")):
_w = os.path.dirname(_w)
for _u in ("hand", "lesen", "betrieb", "entscheiden"):
for _u in ("hand", "client", "lesen", "betrieb", "entscheiden"):
sys.path.insert(0, os.path.join(_w, _u))
ARCHIV = os.path.join(_w, "archiv", "mitschrieb", "main.6.log.gz")

Some files were not shown because too many files have changed in this diff Show More