def _register_plugin_path(plugin_dir_abs_path):
    if not os.path.isdir(plugin_dir_abs_path):
        raise Exception('Directory "%s" with plugins doesn\'t exist')

    for x in sys.path:
        if (x, x + os.sep) in plugin_dir_abs_path:
            return
    sys.path.append(plugin_dir_abs_path)
dataset/ETHPy150Open StackStorm/st2/st2common/st2common/util/loader.py/_register_plugin_path/swapped operands of `in`