Source code for cgl.plugins.unreal.cli.setup_unreal

import logging
import os
import subprocess


[docs] def install_unreal_engine(code_root, unreal_root): install_unreal_engine_path = os.path.join(code_root, "../resources", "bat_scripts", "unreal_engine", "install_unreal_engine.bat") install_unreal_engine_command = "{} {}".format(install_unreal_engine_path, unreal_root) logging.info(install_unreal_engine_command) subprocess.call(install_unreal_engine_command,creationflags=subprocess.CREATE_NEW_CONSOLE)
[docs] def install_alchemy_plugin(code_root, unreal_root): install_alchemy_plugin_path = os.path.join(code_root, "../resources", "bat_scripts", "unreal_engine", "install_alchemy_plugin.bat") install_alchemy_plugin_command = "{} {}".format(install_alchemy_plugin_path, unreal_root) logging.info(install_alchemy_plugin_command) subprocess.call(install_alchemy_plugin_command, creationflags=subprocess.CREATE_NEW_CONSOLE)
[docs] def update_unreal_plugin(code_root, unreal_root): update_alchemy_plugin_path = os.path.join(code_root, "../resources", "bat_scripts", "unreal_engine", "update_unreal_plugin.bat") update_alchemy_plugin_command = "{} {}".format(update_alchemy_plugin_path, unreal_root) logging.info(update_alchemy_plugin_command) subprocess.call(update_alchemy_plugin_command, creationflags=subprocess.CREATE_NEW_CONSOLE)
[docs] def build_unreal_engine(code_root, unreal_root): build_unreal_engine_path = os.path.join(code_root, "../resources", "bat_scripts", "unreal_engine", "build_unreal_engine.bat") build_unreal_engine_command = "{} {}".format(build_unreal_engine_path, unreal_root) logging.info(build_unreal_engine_command) subprocess.call(build_unreal_engine_command, creationflags=subprocess.CREATE_NEW_CONSOLE)