diff options
author | Christopher Harvey <chris@basementcode.com> | 2010-08-04 13:06:12 -0400 |
---|---|---|
committer | Christopher Harvey <chris@basementcode.com> | 2010-08-04 13:06:12 -0400 |
commit | 303ab8cf76a9b3158e7833d0032f9214bd6404ce (patch) | |
tree | 9345c5d8dcc382d0c8ed602141a19f3e193914e9 | |
parent | Added scripts that check fstab file systems and block devices (diff) | |
download | ventoo-303ab8cf76a9b3158e7833d0032f9214bd6404ce.tar.gz ventoo-303ab8cf76a9b3158e7833d0032f9214bd6404ce.tar.bz2 ventoo-303ab8cf76a9b3158e7833d0032f9214bd6404ce.zip |
Added moduleExists to VentooModule
-rw-r--r-- | src/ventoo/VentooModule.py | 7 |
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 |