Module: Dependabot::Python::NativeHelpers

Defined in:
lib/dependabot/python/native_helpers.rb

Class Method Summary collapse

Class Method Details

.native_helpers_rootObject



11
12
13
14
# File 'lib/dependabot/python/native_helpers.rb', line 11

def self.native_helpers_root
  default_path = File.join(__dir__, "../../../..")
  ENV.fetch("DEPENDABOT_NATIVE_HELPERS_PATH", default_path)
end

.python_helper_pathObject



6
7
8
9
# File 'lib/dependabot/python/native_helpers.rb', line 6

def self.python_helper_path
  helpers_dir = File.join(native_helpers_root, "python/helpers")
  Pathname.new(File.join(helpers_dir, "run.py")).cleanpath.to_path
end