diff options
| author | Fulgen301 <tokmajigeorge@gmailc.om> | 2016-11-06 13:17:21 +0100 |
|---|---|---|
| committer | Fulgen301 <tokmajigeorge@gmailc.om> | 2016-11-06 13:17:21 +0100 |
| commit | 867df2e0fbd7a5b035ce07d816f180c16174715b (patch) | |
| tree | b7e35d31d8622d770f72cb68316978c83ee588cd | |
| parent | dc4a8cd1475e575b62f828ca43b98755c1ae344a (diff) | |
| download | pycrctrl-867df2e0fbd7a5b035ce07d816f180c16174715b.tar.gz pycrctrl-867df2e0fbd7a5b035ce07d816f180c16174715b.zip | |
Changed file to a .pyp file for pyprep
| -rw-r--r-- | pycrctrl.pyp (renamed from pycrctrl.py) | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/pycrctrl.py b/pycrctrl.pyp index 23d9bbc..3ee429b 100644 --- a/pycrctrl.py +++ b/pycrctrl.pyp @@ -273,18 +273,19 @@ class PyCRCtrl: self.clonk.stdin.close() except Exception as e: - #if self.clonk and __debug__ and not self.clonk.stdin.closed: - # self.writeToServer(b"Fehler:") +#ifdef DEBUG + if self.clonk and __debug__ and not self.clonk.stdin.closed: + self.writeToServer(b"Fehler:") +#endif tb = traceback.format_exc() - ## for line in tb.splitlines(): - # self.writeToServer(line) - #try: - cerr << line << endl - #except: - # pass - #else: - # continue +#ifdef DEBUG + self.writeToServer(line) +#endif + try: + cerr << line << endl + except: + pass continue return (CmdResult.Success, "") @@ -346,10 +347,10 @@ class PyCRCtrl: def stop(self, prm=None): def stopping(self): while self.clonk and self.stopped: - self.writeToServer("/start 6000") + self.writeToServer("/start 60000") if self.stopped == False: return - sleep(10) + sleep(100) if self.stopped == False: self.stopped = True |
