On 11/5/2006, at 20:21, Gerd Knops wrote:
After using the 'Xcode/Import Frontmost Project' command, for commands in the newly imported project TM_PROJECT_DIRECTORY is set to '/'. I think that is an unfortunate choice.
This is one of the reasons why it has been stated that just dragging the project folder to the TextMate application is generally the better choice! :)
If for whatever reason it can not be set to the 'real' project directory, I think it should either not be defined at all or empty.
The variable is automatically generated by TextMate. But the importer could set the real project directory as a project specific variable (as it would take precedence over the generated value), granted it knows it (I would think that the folder containing the Xcode project file would probably be a good guess).