make msg dir on init
This commit is contained in:
parent
0bc692f444
commit
7e2c473c96
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
interfaceip6adress
|
interfaceip6adress
|
||||||
msg/*
|
msg/*
|
||||||
|
.DS_Store*
|
||||||
|
4
main.py
4
main.py
@ -19,6 +19,10 @@ class Meshenger:
|
|||||||
print 'Building own index for the first time\n'
|
print 'Building own index for the first time\n'
|
||||||
self.build_index()
|
self.build_index()
|
||||||
|
|
||||||
|
if not os.path.exists(self.msg_dir):
|
||||||
|
os.mkdir(self.msg_dir)
|
||||||
|
print 'Making message directory'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
d = threading.Thread(target=self.discover)
|
d = threading.Thread(target=self.discover)
|
||||||
d.daemon = True
|
d.daemon = True
|
||||||
|
Loading…
Reference in New Issue
Block a user