make msg dir on init

This commit is contained in:
Roel 2014-04-18 18:55:12 +02:00
parent 0bc692f444
commit 7e2c473c96
2 changed files with 5 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
interfaceip6adress
msg/*
.DS_Store*

View File

@ -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