diff --git a/src/fprime_gds/executables/cli.py b/src/fprime_gds/executables/cli.py index ccb0b4f6..fc8118a5 100644 --- a/src/fprime_gds/executables/cli.py +++ b/src/fprime_gds/executables/cli.py @@ -541,6 +541,14 @@ def get_arguments(self) -> Dict[Tuple[str, ...], Dict[str, Any]]: "required": False, "type": str, "help": "Directory to store uplink and downlink files. Default: %(default)s", + }, + ("--remote-sequence-directory",): { + "dest": "remote_sequence_directory", + "action": "store", + "default": "/seq", + "required": False, + "type": str, + "help": "Directory to save command sequence binaries, on the remote FSW. Default: %(default)s", } } diff --git a/src/fprime_gds/flask/app.py b/src/fprime_gds/flask/app.py index 82cdcd31..4be06db7 100644 --- a/src/fprime_gds/flask/app.py +++ b/src/fprime_gds/flask/app.py @@ -148,7 +148,7 @@ def construct_app(): args_ns.dictionary, pipeline.up_store, pipeline.files.uplinker, - app.config["REMOTE_SEQ_DIRECTORY"], + args_ns.remote_sequence_directory, ], ) api.add_resource( diff --git a/src/fprime_gds/flask/default_settings.py b/src/fprime_gds/flask/default_settings.py index b1aea337..1d2cca0a 100644 --- a/src/fprime_gds/flask/default_settings.py +++ b/src/fprime_gds/flask/default_settings.py @@ -14,7 +14,6 @@ SERVE_LOGS = os.environ.get("SERVE_LOGS", "YES") == "YES" -REMOTE_SEQ_DIRECTORY = "/seq" MAX_CONTENT_LENGTH = 32 * 1024 * 1024 # Max length of request is 32MiB