lib/tdp/application.rb
# Find first of files in TDP_FILES in current or upper directories.
# If any file is found, file name and directory will be returned.
Find first of files in TDP_FILES in current or upper directories.
If any file is found, file name and directory will be returned.
Find first of files in TDP_FILES in current or upper directories . If any file is found file name and directory will be returned .
def find_tdp_file_location
      here = Dir.pwd
      while ! (fn = have_tdp_file)
        Dir.chdir("..")
        if Dir.pwd == here || options.nosearch
          return nil
        end
        here = Dir.pwd
      end
      [fn, here]
    ensure
      Dir.chdir(TDP.original_dir)
    end
def find_tdp_file_location here = Dir . pwd while ! ( fn = have_tdp_file ) Dir . chdir ( ".." ) if Dir . pwd == here || options . nosearch return nil end here = Dir . pwd end [ fn , here ] ensure Dir . chdir ( TDP . original_dir ) end
Find first of files in TDP_FILES in current or upper directories.
Find first of files in TDP_FILES in current or upper directories .