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:
STATIC_PREF = 'static_'
if __name__ == '__main__':
def main():
_mkdir(CACHE+'/img/')
_mkdir(CACHE+'/vid/')
_mkdir(CACHE+'/audio/')
@ -1451,4 +1451,7 @@ if __name__ == '__main__':
app.setOrganizationName("plchat")
app.setApplicationName("plchat")
ex = App(app.processEvents)
sys.exit(ex._eventloop.run_forever())
sys.exit(ex._eventloop.run_forever())
if __name__ == '__main__':
main()