Removed the ability to run download command from the o3de python package without user intervention

This commit is contained in:
lumberyard-employee-dm
2021-05-27 20:56:03 -05:00
parent fee4bbdd5f
commit 87721cae55
2 changed files with 2 additions and 6 deletions
+1 -4
View File
@@ -31,7 +31,7 @@ def add_args(parser, subparsers) -> None:
o3de_package_dir = (script_dir / 'o3de').resolve()
# add the scripts/o3de directory to the front of the sys.path
sys.path.insert(0, str(o3de_package_dir))
from o3de import engine_template, global_project, register, print_registration, get_registration, download, \
from o3de import engine_template, global_project, register, print_registration, get_registration, \
enable_gem, disable_gem, sha256
# Remove the temporarily added path
sys.path = sys.path[1:]
@@ -50,9 +50,6 @@ def add_args(parser, subparsers) -> None:
# get-registered
get_registration.add_args(subparsers)
# download
download.add_args(subparsers)
# add a gem to a project
enable_gem.add_args(subparsers)
+1 -2
View File
@@ -237,5 +237,4 @@ def main():
sys.exit(ret)
if __name__ == "__main__":
main()
# Do not allow running the download.py script as a standalone script until it is reviewed by app-sec