Ron DeVera wrote:
> 
> I'm having trouble reading `$TM_PROJECT_DIRECTORY` from within another
> shell
> variable. I have a TM2 bundle whose settings contain this:
> 
> ...
> 
>     # Source: https://gist.github.com/1478685
>     projectDirectory = "$CWD"
> 
> This didn't seem to affect `$TM_PROJECT_DIRECTORY`, which remains blank.
> 
> 

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.
-- 
View this message in context: 
http://old.nabble.com/Can%27t-read-%60%24TM_PROJECT_DIRECTORY%60-in-TM2-bundle-tp33744575p33752172.html
Sent from the textmate-dev mailing list archive at Nabble.com.

_______________________________________________
textmate-dev mailing list
[email protected]
http://lists.macromates.com/listinfo/textmate-dev

Reply via email to