diff options
author | Christopher Harvey <chris@basementcode.com> | 2010-06-08 22:56:48 -0400 |
---|---|---|
committer | Christopher Harvey <chris@basementcode.com> | 2010-06-10 11:48:42 -0400 |
commit | d94f00973fa95315bea9f04f24ebde458c80ce04 (patch) | |
tree | 8aa34473f355c0f3c3946996b977c8ff6469fe31 /src/backend/VentooModule.py | |
parent | Added __init__.py files to frontend and backend (diff) | |
download | ventoo-d94f00973fa95315bea9f04f24ebde458c80ce04.tar.gz ventoo-d94f00973fa95315bea9f04f24ebde458c80ce04.tar.bz2 ventoo-d94f00973fa95315bea9f04f24ebde458c80ce04.zip |
Made a place for system wide search paths to live, so that they can be easily changed on installation.
Diffstat (limited to 'src/backend/VentooModule.py')
-rw-r--r-- | src/backend/VentooModule.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/VentooModule.py b/src/backend/VentooModule.py index ff2af32..35c79f9 100644 --- a/src/backend/VentooModule.py +++ b/src/backend/VentooModule.py @@ -22,14 +22,13 @@ import os.path as osp from lxml import etree import augeas_utils - -_ventoo_search_paths_ = ['../modules', '../../modules'] +import search_paths class VentooModule: def __init__(self, moduleName): #see if we can find the module files found = False; - for p in _ventoo_search_paths_: + for p in search_paths.modules: thisPath = osp.join(p,moduleName,"main.xml") if osp.isfile(thisPath): self.pathFound = thisPath |