Functions | |
| def | fileExist (filePath) |
| def | makeDirIfNotExist (dirPath) |
| Checks if an directory is existing and create it if not. | |
Variables | |
| os | ROOT_PATH = os.path.dirname(sys.modules['boswatch'].__file__).replace("\\", "/") + "/../" |
| os | LOG_PATH = ROOT_PATH + "log/" |
| os | CONFIG_PATH = ROOT_PATH + "config/" |
| os | BIN_PATH = ROOT_PATH + "_bin/" |
| os | TEST_PATH = ROOT_PATH + "test/" |
/ __ )/ __ \/ ___/ | / /___ _/ /______/ /_ |__ / / __ / / / /__ | | /| / / __ `/ __/ ___/ __ \ /_ < / /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / ___/ / /_____/____//____/ |__/|__/__,_/__/___/_/ /_/ /____/ German BOS Information Script by Bastian Schroll
| def boswatch.utils.paths.fileExist | ( | filePath | ) |
| def 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
| os boswatch.utils.paths.ROOT_PATH = os.path.dirname(sys.modules['boswatch'].__file__).replace("\\", "/") + "/../" |
| os boswatch.utils.paths.LOG_PATH = ROOT_PATH + "log/" |
| os boswatch.utils.paths.CONFIG_PATH = ROOT_PATH + "config/" |
| os boswatch.utils.paths.BIN_PATH = ROOT_PATH + "_bin/" |
| os boswatch.utils.paths.TEST_PATH = ROOT_PATH + "test/" |