forked from 0x2620/pandora
update video editor
This commit is contained in:
parent
a31d4737f8
commit
7d8a4aa948
4 changed files with 28 additions and 14 deletions
|
|
@ -48,13 +48,16 @@ def load_config():
|
|||
def reloader_thread():
|
||||
_config_mtime = 0
|
||||
while RUN_RELOADER:
|
||||
stat = os.stat(settings.SITE_CONFIG)
|
||||
mtime = stat.st_mtime
|
||||
if _win:
|
||||
mtime -= stat.st_ctime
|
||||
if mtime > _config_mtime:
|
||||
load_config()
|
||||
_config_mtime = mtime
|
||||
try:
|
||||
stat = os.stat(settings.SITE_CONFIG)
|
||||
mtime = stat.st_mtime
|
||||
if _win:
|
||||
mtime -= stat.st_ctime
|
||||
if mtime > _config_mtime:
|
||||
load_config()
|
||||
_config_mtime = mtime
|
||||
except:
|
||||
print "reloading config failed"
|
||||
time.sleep(1)
|
||||
|
||||
def update_static():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue