-
Notifications
You must be signed in to change notification settings - Fork 1
/
restore.py
25 lines (22 loc) · 924 Bytes
/
restore.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import os
from shutil import copyfile
RequesterModalContainer = './app/resources/app/js/RequesterModalContainer.js'
RequesterModalContainerBackup = RequesterModalContainer + '.back'
print('* Restoring RequesterModalContainer.js')
if os.path.isfile(RequesterModalContainerBackup):
os.remove(RequesterModalContainer)
copyfile(RequesterModalContainerBackup, RequesterModalContainer)
os.remove(RequesterModalContainerBackup)
print('* Restored RequesterModalContainer.js')
else:
print('RequesterModalContainer.js.back Not found!')
VendorShared = './app/resources/app/js/vendor-shared.js'
VendorSharedBackup = VendorShared + '.back'
print('* Restoring vendor-shared.js')
if os.path.isfile(VendorSharedBackup):
os.remove(VendorShared)
copyfile(VendorSharedBackup, VendorShared)
os.remove(VendorSharedBackup)
print('* Restored vendor-shared.js')
else:
print('vendor-shared.js.back Not found!')