mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
removed publish_deadline script
This commit is contained in:
parent
3b72dc9f5e
commit
3e0b5d4872
1 changed files with 0 additions and 38 deletions
|
|
@ -1,38 +0,0 @@
|
|||
import os
|
||||
import subprocess
|
||||
import platform
|
||||
import argparse
|
||||
|
||||
|
||||
def __main__():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--paths",
|
||||
nargs="*",
|
||||
default=[],
|
||||
help="The filepaths to publish. This can be a "
|
||||
"directory or a path to a .json publish "
|
||||
"configuration.")
|
||||
|
||||
kwargs, args = parser.parse_known_args()
|
||||
pype_root = os.environ.get("PYPE_SETUP_PATH")
|
||||
if not pype_root:
|
||||
raise Exception("PYPE_SETUP_PATH is not set")
|
||||
|
||||
# TODO: set correct path
|
||||
pype_command = "pype.ps1"
|
||||
if platform.system().lower() == "linux":
|
||||
pype_command = "pype"
|
||||
|
||||
args = [os.path.join(pype_root, pype_command),
|
||||
"--node", "--publish", "--paths", kwargs.paths]
|
||||
|
||||
# if we are using windows, run powershell command directly to support
|
||||
# UNC paths.
|
||||
if platform.system().lower() == "windows":
|
||||
args = ["powershell", "-NoProfile", "-noexit", "-nologo",
|
||||
"-executionPolicy bypass", "-command",
|
||||
'"{}; exit $LASTEXITCODE"'.format(" ".join(args))]
|
||||
|
||||
print('>>> running pype ...')
|
||||
p = subprocess.call(args, shell=True)
|
||||
print('<<< done [ {} ]'.format(p.returncode))
|
||||
Loading…
Add table
Add a link
Reference in a new issue