You are viewing an older version (9.12.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.12.0 / IPython / utils / path / get_py_filename

function

IPython.utils.path:get_py_filename

source: /IPython/utils/path.py :76

Signature

def   get_py_filename ( name )

Summary

Return a valid python filename in the current directory.

Extended Summary

If the given name is not a file, it adds '.py' and searches again. Raises IOError with an informative message if the file isn't found.

Aliases

  • IPython.core.interactiveshell.get_py_filename