kerncraft/kerncraft.py
def get_last_modified_datetime(dir_path=os.path.dirname(__file__)):
    """Return datetime object of latest change in kerncraft module directory."""
    max_mtime = 0
    for root, dirs, files in os.walk(dir_path):
        for f in files:
            p = os.path.join(root, f)
            try:
                max_mtime = max(max_mtime, os.stat(p).st_mtime)
            except FileNotFoundError:
                pass
    return datetime.utcfromtimestamp(max_mtime)
def get_last_modified_datetime(dir_path=os.path.dirname(__file__)):
    max_mtime = 0
    for root, dirs, files in os.walk(dir_path):
        for f in files:
            p = os.path.join(root, f)
            try:
                max_mtime = max(max_mtime, os.stat(p).st_mtime)
            except FileNotFoundError:
                pass
    return datetime.utcfromtimestamp(max_mtime)
def get_last_modified_datetime ( dir_path = os . path . dirname ( __file__ ) ) : max_mtime = 0 for root , dirs , files in os . walk ( dir_path ) : for f in files : p = os . path . join ( root , f ) try : max_mtime = max ( max_mtime , os . stat ( p ) . st_mtime ) except FileNotFoundError : pass return datetime . utcfromtimestamp ( max_mtime )
Return datetime object of latest change in kerncraft module directory.
Return datetime object of latest change in kerncraft module directory .