for node in os.listdir(os.path.join(machine_path, "var/www")): if node != "html": shutil.move( os.path.join(os.path.join(machine_path, "var/www"), node), os.path.join( os.path.join(machine_path, "var/www/html"), node)) except: sys.stderr.write("ERROR: could not move '" + os.path.join(machine_path, "var/www") + "' to '" + os.path.join(machine_path, "var/www/html") + "'\n") # running creation commands not verbosely cr.lab_create(commands, startup_commands) else: cr.lab_create([], startup_commands) COMMAND_LAUNCHER = "bash -c '" COMMAND_LAUNCHER_END = "'" if nc.PLATFORM == nc.WINDOWS: COMMAND_LAUNCHER = 'start cmd /c "' COMMAND_LAUNCHER_END = '"' # print commands for terminal (exec bash commands to open terminals) if not args.noterminals: for exec_command, machine_name in zip(exec_commands, filtered_machines): if nc.PLATFORM == nc.WINDOWS: if cr.PRINT: sys.stderr.write(COMMAND_LAUNCHER + exec_command +
for node in os.listdir(os.path.join(machine_path, "var/www")): if node != "html": shutil.move( os.path.join(os.path.join(machine_path, "var/www"), node), os.path.join( os.path.join(machine_path, "var/www/html"), node)) except: sys.stderr.write("ERROR: could not move '" + os.path.join(machine_path, "var/www") + "' to '" + os.path.join(machine_path, "var/www/html") + "'\n") # running creation commands not verbosely cr.lab_create(commands, startup_commands, external_commands) else: cr.lab_create([], startup_commands, []) COMMAND_LAUNCHER = "bash -c '" COMMAND_LAUNCHER_END = "'" if nc.PLATFORM == nc.WINDOWS: COMMAND_LAUNCHER = 'start cmd /c "' COMMAND_LAUNCHER_END = '"' # print commands for terminal (exec bash commands to open terminals) if not args.noterminals: for exec_command, machine_name in zip(exec_commands, filtered_machines): if nc.PLATFORM == nc.WINDOWS: if cr.PRINT: sys.stderr.write(COMMAND_LAUNCHER + exec_command +