electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 8680eae86f3b0f25d1cb6bd949f1425664dfe379
parent 0e61408dfadbacc32edda620cd65143fc87fec68
Author: ThomasV <thomasv@electrum.org>
Date:   Mon, 30 May 2016 10:53:52 +0200

detect dangling links

Diffstat:
Mgui/qt/__init__.py | 4++--
Mlib/simple_config.py | 2++
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/gui/qt/__init__.py b/gui/qt/__init__.py @@ -181,8 +181,8 @@ class ElectrumGui: def main(self): self.timer.start() self.config.open_last_wallet() - if not self.start_new_window(self.config.get_wallet_path(), - self.config.get('url')): + path = self.config.get_wallet_path() + if not self.start_new_window(path, self.config.get('url')): return signal.signal(signal.SIGINT, lambda *args: self.app.quit()) diff --git a/lib/simple_config.py b/lib/simple_config.py @@ -78,6 +78,8 @@ class SimpleConfig(PrintError): # Make directory if it does not yet exist. if not os.path.exists(path): + if os.path.islink(path): + raise BaseException('Dangling link: ' + path) os.mkdir(path) print_error("electrum directory", path)