Skip to content

Commit

Permalink
[IGNORE] backport script fix to GDT
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambrosiussen committed Dec 3, 2019
1 parent adbf387 commit 569167d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/python/restore_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def recoverFile():
return False

prefix, ext = os.path.splitext(destPath)
os.rename(destPath, prefix + '_copy' + ext)
os.rename(bakPath, destPath)
newDest = prefix + '_recovered' + ext
os.rename(bakPath, newDest)

if hou.ui.displayMessage('Do you want to open the file?', ('Yes', 'Cancel'), close_choice=1):
hou.hipFile.load(destPath)
if hou.ui.displayMessage('Do you want to open the file?', ('Yes', 'Cancel'), close_choice=1) == 0:
hou.hipFile.load(newDest)

0 comments on commit 569167d

Please sign in to comment.