trepan/misc.py
def pyfiles(callername, level=2):
    "All python files caller's dir without the path and trailing .py"
    d = os.path.dirname(callername)
    # Get the name of our directory.
    # A glob pattern that will get all *.py files but not __init__.py
    glob(os.path.join(d, '[a-zA-Z]*.py'))
    py_files = glob(os.path.join(d, '[a-zA-Z]*.py'))
    return [ os.path.basename(filename[0:-3]) for filename in py_files ]
def pyfiles(callername, level=2):
    "All python files caller's dir without the path and trailing .py"
    d = os.path.dirname(callername)
    # Get the name of our directory.
    # A glob pattern that will get all *.py files but not __init__.py
    glob(os.path.join(d, '[a-zA-Z]*.py'))
    py_files = glob(os.path.join(d, '[a-zA-Z]*.py'))
    return [ os.path.basename(filename[0:-3]) for filename in py_files ]
def pyfiles ( callername , level = 2 ) : d = os . path . dirname ( callername ) # Get the name of our directory. # A glob pattern that will get all *.py files but not __init__.py glob ( os . path . join ( d , '[a-zA-Z]*.py' ) ) py_files = glob ( os . path . join ( d , '[a-zA-Z]*.py' ) ) return [ os . path . basename ( filename [ 0 : - 3 ] ) for filename in py_files ]
All python files caller's dir without the path and trailing .py
All python files caller s dir without the path and trailing . py