Skip to content

Commit

Permalink
Addon manager: strip possible whitespaces in dependencies checking
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed May 31, 2017
1 parent 590c57d commit e2e1f44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/AddonManager/AddonManager.py
Expand Up @@ -604,14 +604,14 @@ def checkDependencies(self,baseurl):
if l.startswith("workbenches="):
depswb = l.split("=")[1].split(",")
for wb in depswb:
if not wb in FreeCADGui.listWorkbenches().keys():
if not wb.strip() in FreeCADGui.listWorkbenches().keys():
ok = False
message += translate("AddonsInstaller","Missing workbench") + ": " + wb + ", "
elif l.startswith("pylibs="):
depspy = l.split("=")[1].split(",")
for pl in depspy:
try:
__import__(pl)
__import__(pl.strip())
except:
ok = False
message += translate("AddonsInstaller","Missing python module") +": " + pl + ", "
Expand Down

0 comments on commit e2e1f44

Please sign in to comment.