Skip to content

Commit

Permalink
Merge pull request #91 from cperezabo/main
Browse files Browse the repository at this point in the history
Algunos fixes relacionados a importaciones incorrectas de módulos
  • Loading branch information
reingart authored Apr 16, 2022
2 parents 3141894 + 05cae72 commit 63efaa5
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@ def _build_ssl_context_new(*args, **kwargs):

httplib2._build_ssl_context = _build_ssl_context_new

except:
print("para soporte de WebClient debe instalar httplib2")
except ImportError as mnfe:
if "httplib2" in str(mnfe):
print("para soporte de WebClient debe instalar httplib2")


DEBUG = False
Expand Down Expand Up @@ -1131,9 +1132,11 @@ def get_install_dir():

if hasattr(sys, "frozen"):
# we are running as py2exe-packed executable
import pythoncom

pythoncom.frozen = 1
try:
import pythoncom
pythoncom.frozen = 1
except ImportError:
pass
sys.argv[0] = sys.executable

return os.path.dirname(os.path.abspath(basepath))
Expand Down

0 comments on commit 63efaa5

Please sign in to comment.