Skip to content

Commit c364334

Browse files
authored
Merge pull request #34 from MilhouseVH/crosslink
system update - fix cross-device linking
2 parents 41e55ce + 9fc9c61 commit c364334

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/resources/lib/modules/system.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import oeWindows
3737
import threading
3838
import subprocess
39+
import shutil
3940
from xml.dom import minidom
4041

4142

@@ -771,7 +772,7 @@ def do_autoupdate(self, listItem=None, silent=False):
771772
self.update_file = self.update_file.split('/')[-1]
772773
if self.struct['update']['settings']['UpdateNotify']['value'] == '1':
773774
self.oe.notify(self.oe._(32363), self.oe._(32366))
774-
os.rename(self.oe.TEMP + 'update_file', self.LOCAL_UPDATE_DIR + self.update_file)
775+
shutil.move(self.oe.TEMP + 'update_file', self.LOCAL_UPDATE_DIR + self.update_file)
775776
subprocess.call('sync', shell=True, stdin=None, stdout=None, stderr=None)
776777
if silent == False:
777778
self.oe.winOeMain.close()

0 commit comments

Comments
 (0)