Re: [bitpim-cvs-checkins] SF.net SVN: bitpim: [2852] trunk/bitpim/src/conversions.py
"Roger Binns" <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <012801c63e9b$357179c0$3501a8c0@rogersqyvr14d3> |
> Search for the helpers dir at parent dir > +if os.path.exists(os.path.join(helperdir, 'helpers')): > + # helpers is at local dir > + helperdir=os.path.abspath(os.path.join(helperdir, "helpers")) > +else: > + # 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 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 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642