Add main function

develop
knotteye 2021-04-17 00:26:54 -05:00
parent dbc92c92d5
commit ec3a5a49cd
1 changed files with 5 additions and 2 deletions

View File

@ -1442,7 +1442,7 @@ def updateAnimationPref():
else: else:
STATIC_PREF = 'static_' STATIC_PREF = 'static_'
if __name__ == '__main__': def main():
_mkdir(CACHE+'/img/') _mkdir(CACHE+'/img/')
_mkdir(CACHE+'/vid/') _mkdir(CACHE+'/vid/')
_mkdir(CACHE+'/audio/') _mkdir(CACHE+'/audio/')
@ -1452,3 +1452,6 @@ if __name__ == '__main__':
app.setApplicationName("plchat") app.setApplicationName("plchat")
ex = App(app.processEvents) ex = App(app.processEvents)
sys.exit(ex._eventloop.run_forever()) sys.exit(ex._eventloop.run_forever())
if __name__ == '__main__':
main()