On Wed, Feb 04, 2004 at 11:32:13PM -0700, Jason R. Mastaler wrote:
> However, I don't think we want to run os.path.expanduser() on _every_
> string variable anyway, as there are many where this isn't
> appropriate.
>
> ACTION_EXPIRED_DATED = 'confirm'
> DATED_TIMEOUT = '5d'
> FULLNAME = 'Jason R. Mastaler'
> etc..
>
> So perhaps we have to just do the tilde expansion on a case by case
> basis in Defaults.py? e.g,
>
> if not vars().has_key('TEMPLATE_DIR'):
> TEMPLATE_DIR = None
> else:
> TEMPLATE_DIR = os.path.expanduser(TEMPLATE_DIR)
It seems to me that it would only make sense to apply os.path.expanduser
to variables that could possibly point to the filesystem. Are there other
cases where os.path.expanduser might be applicable?
Cory
--
Cory Wright
Stand Blue Technology
http://www.standblue.net/
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers