|
@ -1,4 +1,4 @@ |
|
|
#!/usr/bin/env python |
|
|
#!/usr/bin/env python3 |
|
|
# -*- mode: python -*- |
|
|
# -*- mode: python -*- |
|
|
# |
|
|
# |
|
|
# Electrum - lightweight Bitcoin client |
|
|
# Electrum - lightweight Bitcoin client |
|
@ -23,11 +23,6 @@ |
|
|
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
|
|
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
|
|
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
|
|
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
|
|
# SOFTWARE. |
|
|
# SOFTWARE. |
|
|
from __future__ import absolute_import |
|
|
|
|
|
from __future__ import division |
|
|
|
|
|
from __future__ import print_function |
|
|
|
|
|
from __future__ import unicode_literals |
|
|
|
|
|
|
|
|
|
|
|
import os |
|
|
import os |
|
|
import sys |
|
|
import sys |
|
|
import six |
|
|
import six |
|
@ -47,13 +42,6 @@ if jnius: |
|
|
jnius.detach() |
|
|
jnius.detach() |
|
|
threading.Thread.run = thread_check_run |
|
|
threading.Thread.run = thread_check_run |
|
|
|
|
|
|
|
|
# monkeypatch unicode constructor for py3 |
|
|
|
|
|
# if six.PY3: |
|
|
|
|
|
# import builtins |
|
|
|
|
|
# builtins.unicode = str |
|
|
|
|
|
# builtins.QString = str |
|
|
|
|
|
# builtins.long = int |
|
|
|
|
|
|
|
|
|
|
|
script_dir = os.path.dirname(os.path.realpath(__file__)) |
|
|
script_dir = os.path.dirname(os.path.realpath(__file__)) |
|
|
is_bundle = getattr(sys, 'frozen', False) |
|
|
is_bundle = getattr(sys, 'frozen', False) |
|
|
is_local = not is_bundle and os.path.exists(os.path.join(script_dir, "setup-release.py")) |
|
|
is_local = not is_bundle and os.path.exists(os.path.join(script_dir, "setup-release.py")) |
|
|