Removed the ability to run download command from the o3de python package without user intervention
This commit is contained in:
+1
-4
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user