X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst-env.py;h=fb266adad34cc7b95b2e16fcee7153b2e5dfa80e;hb=4d335eb66719ce03a72e3bef8ad847583b11c1d6;hp=862b40ec9422d432f48e55b7f54937fafc23d1a9;hpb=12fdf93ba40487bcbfc051ca651e4e9ee7c0d689;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst-env.py b/gst-env.py index 862b40e..fb266ad 100755 --- a/gst-env.py +++ b/gst-env.py @@ -14,6 +14,7 @@ import pathlib import signal from functools import lru_cache from pathlib import PurePath, Path +from sys import exit from typing import Any @@ -265,7 +266,7 @@ def get_subprocess_env(options, gst_version): prepend_env_var(env, "GST_VALIDATE_APPS_DIR", os.path.normpath( "%s/subprojects/gst-editing-services/tests/validate" % SCRIPTDIR), options.sysroot) - env["GST_ENV"] = 'gst-' + gst_version + env["GST_ENV"] = gst_version env["GST_REGISTRY"] = os.path.normpath(options.builddir + "/registry.dat") prepend_env_var(env, "PATH", os.path.normpath( "%s/subprojects/gst-devtools/validate/tools" % options.builddir), @@ -552,7 +553,7 @@ if __name__ == "__main__": if shell in ['powershell.exe', 'pwsh.exe']: new_args = [shell, '-NoLogo'] if not args: - prompt = 'function global:prompt { "[gst-' + gst_version + '"+"] PS " + $PWD + "> "}' + prompt = 'function global:prompt { "[' + gst_version + '"+"] PS " + $PWD + "> "}' new_args += ['-NoExit', '-Command', prompt] else: new_args += ['-NonInteractive', '-Command'] + args @@ -560,7 +561,7 @@ if __name__ == "__main__": else: new_args = [os.environ.get("COMSPEC", r"C:\WINDOWS\system32\cmd.exe")] if not args: - new_args += ['/k', 'prompt [gst-{}] $P$G'.format(gst_version)] + new_args += ['/k', 'prompt [{}] $P$G'.format(gst_version)] else: new_args += ['/c', 'start', '/b', '/wait'] + args args = new_args @@ -574,7 +575,7 @@ if __name__ == "__main__": if os.path.exists(bashrc): with open(bashrc, 'r') as src: shutil.copyfileobj(src, tmprc) - tmprc.write('\nexport PS1="[gst-%s] $PS1"' % gst_version) + tmprc.write('\nexport PS1="[%s] $PS1"' % gst_version) tmprc.flush() if is_bash_completion_available(options): bash_completions_files = [] @@ -595,7 +596,7 @@ if __name__ == "__main__": args.append('--init-command') prompt_cmd = '''functions --copy fish_prompt original_fish_prompt function fish_prompt - echo -n '[gst-{}] '(original_fish_prompt) + echo -n '[{}] '(original_fish_prompt) end'''.format(gst_version) args.append(prompt_cmd) elif args[0].endswith('zsh'): @@ -606,7 +607,7 @@ if __name__ == "__main__": if os.path.exists(zshrc): with open(zshrc, 'r') as src: shutil.copyfileobj(src, tmprc) - tmprc.write('\nexport PROMPT="[gst-{}] $PROMPT"'.format(gst_version)) + tmprc.write('\nexport PROMPT="[{}] $PROMPT"'.format(gst_version)) tmprc.flush() env['ZDOTDIR'] = tmpdir.name try: