Add main function
parent
dbc92c92d5
commit
ec3a5a49cd
|
@ -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/')
|
||||||
|
@ -1451,4 +1451,7 @@ if __name__ == '__main__':
|
||||||
app.setOrganizationName("plchat")
|
app.setOrganizationName("plchat")
|
||||||
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()
|
Loading…
Reference in New Issue