i generally set up a static ROOTDIR variable then use os.path.join(ROOTDIR,
'whatever') to access its
content. For example, if using mercurial you could set :
ROOTDIR = os.environ.get('ROOTDIR', commands.getoutput('hg root'))
On Monday, 21 April 2014 12:11:20 UTC-4, Seth wrote:
>
> What's the "proper" way of getting the abspath for my Pyramid project?
> Obviously I could set a "%(here)s" config in one of the .inis or use an
> os.path.abspath(os.path.dirname(__file__)) call in my __init__.py, but I
> was wondering if there was a more "Pyramidic" way of doing this that works
> pretty much anywhere?
>
> Thanks,
> Seth
>
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.