fix for running dmdot on syndicate
authorScott Baker <smbaker@gmail.com>
Thu, 3 Apr 2014 18:35:25 +0000 (11:35 -0700)
committerScott Baker <smbaker@gmail.com>
Thu, 3 Apr 2014 18:35:25 +0000 (11:35 -0700)
planetstack/dmdot [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 4353793..f38650d
@@ -28,6 +28,8 @@ app = app + ".models"
 #models_module = imp.load_source(app, ".")
 models_module = __import__(app)
 for part in app.split(".")[1:]:
+    if hasattr(models_module, "PlCoreBase"):
+        break
     models_module = getattr(models_module,part)
 
 PlCoreBase = getattr(models_module,"PlCoreBase")