detect dangling links
This commit is contained in:
parent
0e61408dfa
commit
8680eae86f
|
@ -181,8 +181,8 @@ class ElectrumGui:
|
||||||
def main(self):
|
def main(self):
|
||||||
self.timer.start()
|
self.timer.start()
|
||||||
self.config.open_last_wallet()
|
self.config.open_last_wallet()
|
||||||
if not self.start_new_window(self.config.get_wallet_path(),
|
path = self.config.get_wallet_path()
|
||||||
self.config.get('url')):
|
if not self.start_new_window(path, self.config.get('url')):
|
||||||
return
|
return
|
||||||
|
|
||||||
signal.signal(signal.SIGINT, lambda *args: self.app.quit())
|
signal.signal(signal.SIGINT, lambda *args: self.app.quit())
|
||||||
|
|
|
@ -78,6 +78,8 @@ class SimpleConfig(PrintError):
|
||||||
|
|
||||||
# Make directory if it does not yet exist.
|
# Make directory if it does not yet exist.
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
|
if os.path.islink(path):
|
||||||
|
raise BaseException('Dangling link: ' + path)
|
||||||
os.mkdir(path)
|
os.mkdir(path)
|
||||||
|
|
||||||
print_error("electrum directory", path)
|
print_error("electrum directory", path)
|
||||||
|
|
Loading…
Reference in New Issue