fix: import version
This commit is contained in:
@@ -43,7 +43,6 @@ from transaction import Transaction
|
|||||||
import paymentrequest
|
import paymentrequest
|
||||||
from paymentrequest import PR_PAID, PR_UNPAID, PR_UNKNOWN, PR_EXPIRED
|
from paymentrequest import PR_PAID, PR_UNPAID, PR_UNKNOWN, PR_EXPIRED
|
||||||
import contacts
|
import contacts
|
||||||
|
|
||||||
known_commands = {}
|
known_commands = {}
|
||||||
|
|
||||||
class Command:
|
class Command:
|
||||||
@@ -331,8 +330,8 @@ class Commands:
|
|||||||
@command('')
|
@command('')
|
||||||
def version(self):
|
def version(self):
|
||||||
"""Return the version of electrum."""
|
"""Return the version of electrum."""
|
||||||
import electrum # Needs to stay here to prevent ciruclar imports
|
from version import ELECTRUM_VERSION
|
||||||
return electrum.ELECTRUM_VERSION
|
return ELECTRUM_VERSION
|
||||||
|
|
||||||
@command('w')
|
@command('w')
|
||||||
def getmpk(self):
|
def getmpk(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user