aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ventoo/VentooModule.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ventoo/VentooModule.py b/src/ventoo/VentooModule.py
index 86ec9c5..817a146 100644
--- a/src/ventoo/VentooModule.py
+++ b/src/ventoo/VentooModule.py
@@ -24,6 +24,13 @@ from lxml import etree
import augeas_utils
import search_paths
+def moduleExists(moduleName):
+ for p in search_paths.modules:
+ thisPath = osp.join(p,moduleName,"main.xml")
+ if osp.isfile(thisPath):
+ return True
+ return False
+
class VentooModule:
def __init__(self, moduleName):
#see if we can find the module files