Functions | |
fileExist (filePath) | |
makeDirIfNotExist (dirPath) | |
Checks if an directory is existing and create it if not. | |
Variables | |
str | ROOT_PATH = os.path.dirname(sys.modules['boswatch'].__file__).replace("\\", "/") + "/../" |
str | LOG_PATH = ROOT_PATH + "log/" |
str | CONFIG_PATH = ROOT_PATH + "config/" |
str | BIN_PATH = ROOT_PATH + "_bin/" |
str | TEST_PATH = ROOT_PATH + "test/" |
/ __ )/ __ \/ ___/ | / /___ _/ /______/ /_ |__ / / __ / / / /__ | | /| / / __ `/ __/ ___/ __ \ /_ < / /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / ___/ / /_____/____//____/ |__/|__/__,_/__/___/_/ /_/ /____/ German BOS Information Script by Bastian Schroll
boswatch.utils.paths.fileExist | ( | filePath | ) |
boswatch.utils.paths.makeDirIfNotExist | ( | dirPath | ) |
Checks if an directory is existing and create it if not.
@param dirPath: Path of the directory @return Path of the directory or False
str boswatch.utils.paths.ROOT_PATH = os.path.dirname(sys.modules['boswatch'].__file__).replace("\\", "/") + "/../" |
str boswatch.utils.paths.LOG_PATH = ROOT_PATH + "log/" |
str boswatch.utils.paths.CONFIG_PATH = ROOT_PATH + "config/" |
str boswatch.utils.paths.BIN_PATH = ROOT_PATH + "_bin/" |
str boswatch.utils.paths.TEST_PATH = ROOT_PATH + "test/" |