Commit 045bb413 authored by Manuela Kuhn's avatar Manuela Kuhn
Browse files

Added option to configure config file

parent 08547f16
This diff is collapsed.
......@@ -120,6 +120,8 @@ def confirm (prompt=None, resp=False):
def checkEventDetectorType (eDType, supportedTypes):
eDType = eDType.lower()
if eDType in supportedTypes:
logging.debug("Event detector '" + eDType + "' is ok.")
......@@ -174,6 +176,15 @@ def checkAllSubDirExist (dirPath, subDirs):
logging.warning("Dir '%s' does not exist." % str(d))
def checkFileExistance (filePath):
# Check file for existance.
# Exits if it does not exist
if not os.path.exists(filePath):
logging.error("File '%s' does not exist. Abort." % str(filePath))
def checkDirExistance (dirPath):
# Check directory path for existance.
# Exits if it does not exist
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment