Explorar el Código

Fix dependency issue for Python2

Cammy hace 6 años
padre
commit
fc7174598c
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      pyinstalive/startup.py

+ 2 - 1
pyinstalive/startup.py

@@ -4,9 +4,9 @@ import os
 import logging
 import platform
 import subprocess
-from urllib.parse import urlparse
 
 try:
+    from urllib.parse import urlparse
     import pil
     import auth
     import logger
@@ -16,6 +16,7 @@ try:
     import dlfuncs
     from constants import Constants
 except ImportError:
+    from urlparse import urlparse
     from . import pil
     from . import auth
     from . import logger