def PathIsDirCreate(self, key, val, env):
        """Validator to check if Path is a directory,
           creating it if it does not exist."""
        if os.path.isfile(val):
            m = 'Path for option %s is a file, not a directory: %s'
            raise SCons.Errors.UserError((key, val) % m)
        if not os.path.isdir(val):
            os.makedirs(val)
dataset/ETHPy150Open kayhayen/Nuitka/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Variables/PathVariable.py/_PathVariableClass.PathIsDirCreate/swapped operands of `%`