parameters: (self, dir=None)
return_statement: return pathname + path_elems[-1].name
docstring: Return path relative to the current working directory of the
          Node.FS.Base object that owns us.
docstring_summary: Return path relative to the current working directory of the
          Node.FS.Base object that owns us.
docstring_tokens: Return path relative to the current working directory of the Node . FS . Base object that owns us .
function: def get_path(self, dir=None):
          """Return path relative to the current working directory of the
          Node.FS.Base object that owns us."""
          if not dir:
              dir = self.fs.getcwd()
          if self == dir:
              return '.'
          path_elems = self.get_path_elements()
          pathname = ''
          try: i = path_elems.index(dir)
          except ValueError:
              for p in path_elems[:-1]:
                  pathname += p.dirname
          else:
              for p in path_elems[i+1:-1]:
                  pathname += p.dirname
          return pathname + path_elems[-1].name
function_tokens: def get_path ( self , dir = None ) : if not dir : dir = self . fs . getcwd ( ) if self == dir : return '.' path_elems = self . get_path_elements ( ) pathname = '' try : i = path_elems . index ( dir ) except ValueError : for p in path_elems [ : - 1 ] : pathname += p . dirname else : for p in path_elems [ i + 1 : - 1 ] : pathname += p . dirname return pathname + path_elems [ - 1 ] . name