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

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


On Thu, Apr 26, 2012 at 5:01 AM, George McGinley Smith
<george at gsgd.co.uk> wrote:
> Looks like TM2 uses projectDirectory instead of TM_PROJECT_DIRECTORY. You
> could either add
>
> TM_PROJECT_DIRECTORY = "$projectDirectory"
>
> after you initial
>
> projectDirectory = "$CWD"
>
> Which would enable backwards compatibility, or update your scripts to use
> the $projectDirectory.

Reading `$projectDirectory` directly in my bundle didn't seem to work,
but setting `TM_PROJECT_DIRECTORY = "$projectDirectory"` in
`.tm_properties` did the trick. Thanks!

Ron


More information about the textmate-dev mailing list