Skip to content

Commit

Permalink
Default TM_PROJECT_DIRECTORY to the directory component of TM_FILEPATH.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Ross committed Feb 3, 2010
1 parent 83815ab commit d7c9c12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Commands/Build Target….tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ require ENV["TM_SUPPORT_PATH"] + "/lib/escape"
TextMate::Executor.make_project_master_current_document
ENV["TM_PROJECT_DIRECTORY"] ||= File.dirname(ENV["TM_FILEPATH"])
Dir.chdir(ENV["TM_PROJECT_DIRECTORY"])
ENV["TM_MAKE_FILE"] = ENV["TM_PROJECT_DIRECTORY"] + "/Makefile" if ENV["TM_MAKE_FILE"].nil? or not File.file?(ENV["TM_MAKE_FILE"])
Expand Down
1 change: 1 addition & 0 deletions Commands/Run.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ require ENV["TM_SUPPORT_PATH"] + "/lib/escape"
TextMate::Executor.make_project_master_current_document
ENV["TM_PROJECT_DIRECTORY"] ||= File.dirname(ENV["TM_FILEPATH"])
Dir.chdir(ENV["TM_PROJECT_DIRECTORY"])
ENV["TM_MAKE_FILE"] = ENV["TM_PROJECT_DIRECTORY"] + "/Makefile" if ENV["TM_MAKE_FILE"].nil? or not File.file?(ENV["TM_MAKE_FILE"])
Expand Down

0 comments on commit d7c9c12

Please sign in to comment.