def command_run(args): procfile_path = _procfile_path(args.app_root, args.procfile) os.environ.update(_read_env(procfile_path, args.env)) if compat.ON_WINDOWS: # do not quote on Windows, subprocess will handle it for us # using the MSFT quoting rules cmd = args.argv else: cmd = ' '.join(compat.shellquote(arg) for arg in args.argv) p = Popen(cmd, stdout=sys.stdout, stderr=sys.stderr) p.wait() sys.exit(p.returncode)
def command_run(args): procfile_path = _procfile_path(args.app_root, args.procfile) os.environ.update(_read_env(procfile_path, args.env)) if compat.ON_WINDOWS: # do not quote on Windows, subprocess will handle it for us # using the MSFT quoting rules cmd = args.command else: cmd = ' '.join(compat.shellquote(arg) for arg in args.command) p = Process(cmd, stdout=sys.stdout, stderr=sys.stderr) p.wait() sys.exit(p.returncode)
def command_run(args): os.environ.update(_read_env(args.app_root, args.env)) if compat.ON_WINDOWS: # do not quote on Windows, subprocess will handle it for us # using the MSFT quoting rules cmd = args.argv else: cmd = ' '.join(compat.shellquote(arg) for arg in args.argv) p = Popen(cmd, stdout=sys.stdout, stderr=sys.stderr, start_new_session=False) signal.signal(signal.SIGINT, signal.SIG_IGN) p.wait() sys.exit(p.returncode)
def command_run(args): procfile_path = _procfile_path(args.app_root, args.procfile) os.environ.update(_read_env(procfile_path, args.env)) if compat.ON_WINDOWS: # do not quote on Windows, subprocess will handle it for us # using the MSFT quoting rules cmd = args.argv else: cmd = ' '.join(compat.shellquote(arg) for arg in args.argv) p = Popen(cmd, stdout=sys.stdout, stderr=sys.stderr, start_new_session=False) signal.signal(signal.SIGINT, signal.SIG_IGN) p.wait() sys.exit(p.returncode)
def command_run(args): os.environ.update(_read_env(args.app_root, args.env)) argv = args.argv # If the first of the remaining args is '--', skip it. if argv and argv[0] == '--': argv = argv[1:] if compat.ON_WINDOWS: # do not quote on Windows, subprocess will handle it for us # using the MSFT quoting rules cmd = argv else: cmd = ' '.join(compat.shellquote(arg) for arg in argv) p = Popen(cmd, stdout=sys.stdout, stderr=sys.stderr, start_new_session=False) signal.signal(signal.SIGINT, signal.SIG_IGN) p.wait() sys.exit(p.returncode)