[SVN] Re: Can't read `$TM_PROJECT_DIRECTORY` in TM2 bundle

Ron DeVera hello at rondevera.com
Mon Apr 30 01:47:11 UTC 2012


On Sat, Apr 28, 2012 at 4:50 AM, Allan Odgaard <mailinglist at textmate.org> wrote:
> The TM_PROJECT_DIRECTORY is set after the bundle setting variables are set.
>
> Why do you want to introduce a variable that is effectively an alias for TM_PROJECT_DIRECTORY? I.e. wouldn’t it be more clear, and not clutter the global namespace, simply to use TM_PROJECT_DIRECTORY in your script?

The bundle reads an environment variable `TM_OPTIONS_FILE` that other
users can point to a custom path, e.g., `~/.myconfig`,
`$TM_PROJECT_DIRECTORY/config/myconfig.yml`. The custom environment
variable is used not just as an alias, but as an optional part of a
path that can be either global or project-specific.

Cheers,
Ron


More information about the textmate-dev mailing list