old_contents: import os
  from importlib import import_module
  from inspect import isfunction
  
  
  def load(directory):
      functions = []
  
      for module in _get_modules(directory):
          for name in dir(module):
              value = getattr(module, name)
              if isfunction(value):
                  functions.append(value)
  
      return functions
  
  
  def _get_modules(directory):
      return [
          import_module(_path_to_module(directory, filename))
          for filename in _get_python_files(directory)
      ]
  
  
  def _get_python_files(directory):
      return [file for file in os.listdir(directory) if not file.startswith('__')]
  
  
  def _path_to_module(path, filename):
      return os.path.join(
          os.path.dirname(path),
          _remove_file_extension(filename)
      ).replace('/', '.')
  
  
  def _remove_file_extension(filename):
      return filename[:-3]
  
new_contents: import os
  import sys
  from inspect import isfunction
  from importlib import import_module
  
  
  def load(directory):
      functions = []
  
      for module in _get_modules(directory):
          for name in dir(module):
              value = getattr(module, name)
              if isfunction(value):
                  functions.append(value)
  
      return functions
  
  
  def _get_modules(directory):
      if directory.endswith('/'):
          directory = directory[:-1]
  
      sys.path.insert(0, directory)
      return [
          import_module(filename)
          for filename in _get_python_files(directory)
      ]
  
  
  def _get_python_files(directory):
      return [
          _remove_file_extension(file)
          for file in os.listdir(directory)
          if not file.startswith('__') and _is_python_file(file)
      ]
  
  
  def _is_python_file(filename):
      return filename.endswith('.py')
  
  
  def _remove_file_extension(filename):
      return filename[:-3]
  
subject: fix loading functions from absolute paths