Add main function
parent
dbc92c92d5
commit
ec3a5a49cd
|
@ -1442,7 +1442,7 @@ def updateAnimationPref():
|
|||
else:
|
||||
STATIC_PREF = 'static_'
|
||||
|
||||
if __name__ == '__main__':
|
||||
def main():
|
||||
_mkdir(CACHE+'/img/')
|
||||
_mkdir(CACHE+'/vid/')
|
||||
_mkdir(CACHE+'/audio/')
|
||||
|
@ -1452,3 +1452,6 @@ if __name__ == '__main__':
|
|||
app.setApplicationName("plchat")
|
||||
ex = App(app.processEvents)
|
||||
sys.exit(ex._eventloop.run_forever())
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
Loading…
Reference in New Issue