Wait 1 second to close files between restarts
This commit is contained in:
parent
56dbd88889
commit
6519e846d8
1 changed files with 1 additions and 0 deletions
|
@ -49,6 +49,7 @@ def main():
|
||||||
# Restart
|
# Restart
|
||||||
gc.collect() # Garbage collect
|
gc.collect() # Garbage collect
|
||||||
print "Restarting..."
|
print "Restarting..."
|
||||||
|
time.sleep(1) # Wait files to close
|
||||||
args = sys.argv[:]
|
args = sys.argv[:]
|
||||||
args.insert(0, sys.executable)
|
args.insert(0, sys.executable)
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
|
|
Loading…
Reference in a new issue