@@ -62,19 +62,19 @@ except Exception:
62
62
sys .exit ("cannot import ecdsa.curve_secp256k1. You probably need to upgrade ecdsa.\n Try: sudo pip install --upgrade ecdsa" )
63
63
64
64
65
- # load local module as electrum
65
+ # load local module as electrum_dash
66
66
if is_bundle or is_local or is_android :
67
67
import imp
68
- imp .load_module ('electrum ' , * imp .find_module ('lib' ))
69
- imp .load_module ('electrum_gui ' , * imp .find_module ('gui' ))
68
+ imp .load_module ('electrum_dash ' , * imp .find_module ('lib' ))
69
+ imp .load_module ('electrum_dash_gui ' , * imp .find_module ('gui' ))
70
70
71
71
72
- from electrum import util
73
- from electrum import SimpleConfig , Network , Wallet , WalletStorage , NetworkProxy
74
- from electrum .util import print_msg , print_error , print_stderr , print_json , set_verbosity , InvalidPassword
75
- from electrum .daemon import get_daemon
76
- from electrum .plugins import init_plugins , run_hook , always_hook
77
- from electrum .commands import get_parser , known_commands , Commands , config_variables
72
+ from electrum_dash import util
73
+ from electrum_dash import SimpleConfig , Network , Wallet , WalletStorage , NetworkProxy
74
+ from electrum_dash .util import print_msg , print_error , print_stderr , print_json , set_verbosity , InvalidPassword
75
+ from electrum_dash .daemon import get_daemon
76
+ from electrum_dash .plugins import init_plugins , run_hook , always_hook
77
+ from electrum_dash .commands import get_parser , known_commands , Commands , config_variables
78
78
79
79
80
80
# get password routine
@@ -99,9 +99,9 @@ def run_gui(config):
99
99
if url :
100
100
if os .path .exists (url ):
101
101
# assume this is a payment request
102
- url = "bitcoin :?r=file://" + os .path .join (os .getcwd (), url )
102
+ url = "dash :?r=file://" + os .path .join (os .getcwd (), url )
103
103
104
- if not re .match ('^bitcoin :' , url ):
104
+ if not re .match ('^dash :' , url ):
105
105
print_stderr ('unknown command:' , url )
106
106
sys .exit (1 )
107
107
@@ -110,7 +110,7 @@ def run_gui(config):
110
110
gui_name = 'qt'
111
111
112
112
try :
113
- gui = __import__ ('electrum_gui .' + gui_name , fromlist = ['electrum_gui ' ])
113
+ gui = __import__ ('electrum_dash_gui .' + gui_name , fromlist = ['electrum_dash_gui ' ])
114
114
except ImportError :
115
115
traceback .print_exc (file = sys .stdout )
116
116
sys .exit ()
@@ -139,7 +139,7 @@ def run_gui(config):
139
139
def run_daemon (config ):
140
140
cmd = config .get ('subcommand' )
141
141
if cmd not in ['start' , 'stop' , 'status' ]:
142
- print_msg ("syntax: electrum daemon <start|status|stop>" )
142
+ print_msg ("syntax: electrum-dash daemon <start|status|stop>" )
143
143
sys .exit (1 )
144
144
s = get_daemon (config , False )
145
145
if cmd == 'start' :
@@ -262,7 +262,7 @@ def run_cmdline(config):
262
262
263
263
if cmd .name not in ['create' , 'restore' ] and cmd .requires_wallet and not storage .file_exists :
264
264
print_msg ("Error: Wallet file not found." )
265
- print_msg ("Type 'electrum create' to create a new wallet, or provide a path to a wallet with the -w option" )
265
+ print_msg ("Type 'electrum-dash create' to create a new wallet, or provide a path to a wallet with the -w option" )
266
266
sys .exit (0 )
267
267
268
268
# create wallet instance
@@ -299,7 +299,7 @@ def run_cmdline(config):
299
299
if cmd .requires_network and not config .get ('offline' ):
300
300
s = get_daemon (config , False )
301
301
if not s :
302
- print_msg ("Network daemon is not running. Try 'electrum daemon start'\n If you want to run this command offline, use the -o flag." )
302
+ print_msg ("Network daemon is not running. Try 'electrum-dash daemon start'\n If you want to run this command offline, use the -o flag." )
303
303
sys .exit (1 )
304
304
network = NetworkProxy (s , config )
305
305
network .start ()
0 commit comments