summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-10-27 19:00:38 +0100
committermathieui <mathieui@mathieui.net>2014-10-27 19:00:38 +0100
commit22f9b7a66ab4a3f5d3927e429912237df2a3aa15 (patch)
treec51a7254f4d815c4fea5b9a2589b95c2ebc5e014
parent0f1beb89e961b22b1db875cb9278fc6a28bc50be (diff)
downloadpoezio-22f9b7a66ab4a3f5d3927e429912237df2a3aa15.tar.gz
poezio-22f9b7a66ab4a3f5d3927e429912237df2a3aa15.tar.bz2
poezio-22f9b7a66ab4a3f5d3927e429912237df2a3aa15.tar.xz
poezio-22f9b7a66ab4a3f5d3927e429912237df2a3aa15.zip
Prevent a (harmless) traceback while generating the documentation
-rw-r--r--plugins/screen_detach.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/screen_detach.py b/plugins/screen_detach.py
index 3552a179..53827c11 100644
--- a/plugins/screen_detach.py
+++ b/plugins/screen_detach.py
@@ -7,15 +7,14 @@ import os
import stat
import pyinotify
-SCREEN_DIR = '/var/run/screen/S-%s' % (os.getlogin(),)
-
class Plugin(BasePlugin):
def init(self):
+ screen_dir = '/var/run/screen/S-%s' % (os.getlogin(),)
self.timed_event = None
sock_path = None
self.thread = None
- for f in os.listdir(SCREEN_DIR):
- path = os.path.join(SCREEN_DIR, f)
+ for f in os.listdir(screen_dir):
+ path = os.path.join(screen_dir, f)
if screen_attached(path):
sock_path = path
self.attached = True