From 7e2c473c96ffd8fb23e1c6180149fd9f86817d27 Mon Sep 17 00:00:00 2001 From: Roel Date: Fri, 18 Apr 2014 18:55:12 +0200 Subject: [PATCH] make msg dir on init --- .gitignore | 1 + main.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 05171cd..69b62a9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ interfaceip6adress msg/* +.DS_Store* diff --git a/main.py b/main.py index ab12296..b92a4a2 100755 --- a/main.py +++ b/main.py @@ -19,6 +19,10 @@ class Meshenger: print 'Building own index for the first time\n' self.build_index() + if not os.path.exists(self.msg_dir): + os.mkdir(self.msg_dir) + print 'Making message directory' + try: d = threading.Thread(target=self.discover) d.daemon = True