diff --git a/scripts/o3de.py b/scripts/o3de.py index 24ba862529..8d7532878c 100755 --- a/scripts/o3de.py +++ b/scripts/o3de.py @@ -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) diff --git a/scripts/o3de/o3de/download.py b/scripts/o3de/o3de/download.py index 1dbb584c92..6f1b82e754 100644 --- a/scripts/o3de/o3de/download.py +++ b/scripts/o3de/o3de/download.py @@ -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