Roger Binns
2006-03-03 08:19:36 UTC
Search for the helpers dir at parent dir
+ # helpers is at local dir
+ helperdir=os.path.abspath(os.path.join(helperdir, "helpers"))
+ # else upper dir (if running from src)
+ helperdir=os.path.abspath(os.path.join(helperdir, "../helpers"))
I would prefer that there is an attribute somewhere central+ # helpers is at local dir
+ helperdir=os.path.abspath(os.path.join(helperdir, "helpers"))
+ # else upper dir (if running from src)
+ helperdir=os.path.abspath(os.path.join(helperdir, "../helpers"))
named something like 'isfrozen' and use that to determine
where to look.
Even better would be abstracting all this out into another
module. That new module would then be able to apply various
rules (eg it could look elsewhere on the system first for
certain operating systems etc)
Roger