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