def install_in_directory(directory, command):
    if create_directory(directory):
        Colorizer.info("[*] Switching to %s" % directory)
        os.chdir(directory)
        return run_command(command)
    else:
        Colorizer.warning("[!] Directory %s already exists, so skipping installation for this" % directory)
        return True
Execute a certain command while staying inside one directory.
dataset/ETHPy150Open owtf/owtf/install/install.py/install_in_directory