KekLib.BasicUtils#

BasicUtils.py

Copyright (c) 2016-2022, Masatsuyo Takahashi, KEK-PF

class AutoVivifiedDict#

Bases: dict

Implementation of perl’s autovivification feature.

class Struct(**entries)#

Bases: object

auto_numbered_file(f)#
clear_dirs_with_retry(dirs, retry=3)#
exe_name()#
get_caller_module(level=1)#
get_filename_extension(filename)#
get_home_folder()#
home_dir()#
is_almost_empty_dir(path)#
is_empty_dir(path)#
is_usedfolder(folder)#
make_indecies_text(indecies, offset=0)#
mkdirs_with_retry(path, retry=3)#
num_files_in(path)#
open_w_safely(path, mode, rename_cb=None)#
ordinal_str(numb)#
print_exception()#
rename_existing_file(path, ext='')#
rename_with_retry(old_path, new_path, retry=3)#