PathHelperPackage (String moduleEntryPoint, String path, boolean asModule, String[] thirdPartyDependencies) { List<HelperDependency> dependencies = HelperDependency.findThirdPartyDependencies(thirdPartyDependencies); if (getHelperFile(path + ".zip").isFile()) { return new ModuleHelperPackage(moduleEntryPoint, path + ".zip", dependencies); } if (!asModule && new File(getHelperFile(path), moduleEntryPoint + ".py").isFile()) { return new ScriptPythonHelper(moduleEntryPoint + ".py", getHelperFile(path), dependencies); } return new ModuleHelperPackage(moduleEntryPoint, path, dependencies); }