parameters: (self, filename)
docstring: Prepend sys.path with file's directory if not already included
docstring_summary: Prepend sys.path with file's directory if not already included
docstring_tokens: Prepend sys . path with file s directory if not already included
function: def prepend_syspath(self, filename):
          "Prepend sys.path with file's directory if not already included"
          self.runcommand("""if 1:
              _filename = %r
              import sys as _sys
              from os.path import dirname as _dirname
              _dir = _dirname(_filename)
              if not _dir in _sys.path:
                  _sys.path.insert(0, _dir)
              del _filename, _sys, _dirname, _dir
              \n""" % (filename,))
function_tokens: def prepend_syspath ( self , filename ) : self . runcommand ( """if 1:
              _filename = %r
              import sys as _sys
              from os.path import dirname as _dirname
              _dir = _dirname(_filename)
              if not _dir in _sys.path:
                  _sys.path.insert(0, _dir)
              del _filename, _sys, _dirname, _dir
              \n""" % ( filename , ) )