You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03:00
Actually ad the arg to argparse
This commit is contained in:
@@ -122,6 +122,7 @@ def on_receive_jenkins_poke():
|
|||||||
|
|
||||||
create_symlink(source=os.path.join(untar_location, "vector"), linkname=arg_symlink)
|
create_symlink(source=os.path.join(untar_location, "vector"), linkname=arg_symlink)
|
||||||
|
|
||||||
|
if arg_config_location:
|
||||||
create_symlink(source=arg_config_location, linkname=os.path.join(untar_location, "vector", 'config.json'))
|
create_symlink(source=arg_config_location, linkname=os.path.join(untar_location, "vector", 'config.json'))
|
||||||
|
|
||||||
return jsonify({})
|
return jsonify({})
|
||||||
@@ -156,6 +157,12 @@ if __name__ == "__main__":
|
|||||||
to the /vector directory INSIDE the tarball."
|
to the /vector directory INSIDE the tarball."
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--config", dest="config", help=(
|
||||||
|
"Write a symlink to config.json in the extracted tarball. \
|
||||||
|
To this location."
|
||||||
|
)
|
||||||
|
)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
if args.jenkins.endswith("/"): # important for urljoin
|
if args.jenkins.endswith("/"): # important for urljoin
|
||||||
arg_jenkins_url = args.jenkins
|
arg_jenkins_url = args.jenkins
|
||||||
|
|||||||
Reference in New Issue
Block a user