Changed the way the portable flag uses without supplying a -w argument

This commit is contained in:
Maran 2013-04-11 22:06:55 +02:00
parent d09d4e4055
commit 6938636ba2

View file

@ -88,6 +88,8 @@ if __name__ == '__main__':
parser = arg_parser()
options, args = parser.parse_args()
if options.portable and options.wallet_path is None:
options.wallet_path = os.path.dirname(os.path.realpath(__file__)) + '/electrum.dat'
set_verbosity(options.verbose)
# config is an object passed to the various constructors (wallet, interface, gui)