Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
improve the code when an error appears
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Dec 10, 2014
1 parent b6d54af commit 244ed55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pymyinstall/installhelper/install_cmd.py
Expand Up @@ -483,6 +483,7 @@ def install(self, force_kind = None,

self.fLOG("installation of ", self)
kind = force_kind if force_kind is not None else self.kind
ret = None

if kind == "pip" :
pip = os.path.join(os.path.split(sys.executable)[0],"Scripts","pip.exe")
Expand Down Expand Up @@ -570,7 +571,7 @@ def install(self, force_kind = None,
# if not self.IsInstalled() :
# raise Exception("unable to install module: {0}, str:{1}".format(self.name, self))

if ret and self.script is not None:
if ret is not None and ret and self.script is not None:
if sys.platform.startswith("win"):
# here, we have to wait until the script is installed
ti = 0
Expand Down Expand Up @@ -599,7 +600,6 @@ def install(self, force_kind = None,

return ret


def add_shortcut_to_desktop_for_module(name):
"""
add a shortcut on a module which includes a script
Expand Down

0 comments on commit 244ed55

Please sign in to comment.