Skip to content

Commit

Permalink
fixed plugin tool for jimi class include
Browse files Browse the repository at this point in the history
  • Loading branch information
z1pti3 committed Jun 26, 2021
1 parent 16f6420 commit 4835f53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def extractVariables(variableLines):
vars = extractVariables(c[1:])
try:
modulePath = "{0}.{1}".format(path.split(pluginPath)[1].replace("/",".").replace("\\","."),name.split(".py")[0])
modules[defType][defName] = { "path" : modulePath, "vars" : vars }
modules[defType][defName] = { "path" : modulePath[1:], "vars" : vars }
except:
pass
return modules
Expand Down Expand Up @@ -107,11 +107,11 @@ def writeManifest(name,path,manifest):
if field[0] == "version":
manifest["version"] = float(field[1])
objectType = ""
if classType == "db._document":
if classType.endswith("db._document"):
objectType = "collections"
elif classType == "trigger._trigger":
elif classType.endswith("trigger._trigger"):
objectType = "triggers"
elif classType == "action._action":
elif classType.endswith("action._action"):
objectType = "actions"
if objectType:
objectName = module
Expand Down

0 comments on commit 4835f53

Please sign in to comment.