parameters: (path)
docstring: Take the full path 'path', and make it a relative path so
      it can be the second argument to os.path.join().
docstring_summary: Take the full path 'path', and make it a relative path so
      it can be the second argument to os.path.join().
docstring_tokens: Take the full path path and make it a relative path so it can be the second argument to os . path . join () .
function: def ensure_relative (path):
      """Take the full path 'path', and make it a relative path so
      it can be the second argument to os.path.join().
      """
      drive, path = os.path.splitdrive(path)
      if sys.platform == 'mac':
          return os.sep + path
      else:
          if path[0:1] == os.sep:
              path = drive + path[1:]
          return path
function_tokens: def ensure_relative ( path ) : drive , path = os . path . splitdrive ( path ) if sys . platform == 'mac' : return os . sep + path else : if path [ 0 : 1 ] == os . sep : path = drive + path [ 1 : ] return path