Adds the Environment, External, Utils folder inside de DPpack. All classes are going to be implemented there
16 lines
483 B
Python
16 lines
483 B
Python
def NotNull(requiredArgs=[]):
|
|
def _NotNull(function):
|
|
def wrapper(*args, **kwargs):
|
|
for arg in requiredArgs:
|
|
try:
|
|
assert (
|
|
kwargs.get(arg) is not None
|
|
), "Invalid Config File. Keyword {} is required".format(arg)
|
|
except AssertionError as err:
|
|
print(err)
|
|
return function(*args, **kwargs)
|
|
|
|
return wrapper
|
|
|
|
return _NotNull
|