Browse Source

Dont migrate wallets for xp

283
Maran 12 years ago
parent
commit
2e583ec38d
  1. 19
      lib/util.py

19
lib/util.py

@ -24,15 +24,16 @@ def print_msg(*args):
def check_windows_wallet_migration(): def check_windows_wallet_migration():
if os.path.exists(os.path.join(os.environ["LOCALAPPDATA"], "Electrum")): if platform.release() != "XP":
if os.path.exists(os.path.join(os.environ["APPDATA"], "Electrum")): if os.path.exists(os.path.join(os.environ["LOCALAPPDATA"], "Electrum")):
print_msg("Two Electrum folders have been found, the default Electrum location for Windows has changed from %s to %s since Electrum 1.7, please check your wallets and fix the problem manually." % (os.environ["LOCALAPPDATA"], os.environ["APPDATA"])) if os.path.exists(os.path.join(os.environ["APPDATA"], "Electrum")):
sys.exit() print_msg("Two Electrum folders have been found, the default Electrum location for Windows has changed from %s to %s since Electrum 1.7, please check your wallets and fix the problem manually." % (os.environ["LOCALAPPDATA"], os.environ["APPDATA"]))
try: sys.exit()
shutil.move(os.path.join(os.environ["LOCALAPPDATA"], "Electrum"), os.path.join(os.environ["APPDATA"])) try:
print_msg("Your wallet has been moved from %s to %s."% (os.environ["LOCALAPPDATA"], os.environ["APPDATA"])) shutil.move(os.path.join(os.environ["LOCALAPPDATA"], "Electrum"), os.path.join(os.environ["APPDATA"]))
except: print_msg("Your wallet has been moved from %s to %s."% (os.environ["LOCALAPPDATA"], os.environ["APPDATA"]))
print_msg("Failed to move your wallet.") except:
print_msg("Failed to move your wallet.")
def user_dir(): def user_dir():

Loading…
Cancel
Save