lightspeed.trex.project_wizard.core#
SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- class lightspeed.trex.project_wizard.core.ProjectWizardKeys(value)#
An enumeration.
- pydantic model lightspeed.trex.project_wizard.core.ProjectWizardSchema#
Show JSON schema
{ "title": "ProjectWizardSchema", "type": "object", "properties": { "existing_project": { "title": "Existing Project", "type": "boolean" }, "project_file": { "format": "path", "title": "Project File", "type": "string" }, "remix_directory": { "anyOf": [ { "format": "path", "type": "string" }, { "type": "null" } ], "default": null, "title": "Remix Directory" }, "existing_mods": { "anyOf": [ { "items": { "format": "path", "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Existing Mods" }, "mod_file": { "anyOf": [ { "format": "path", "type": "string" }, { "type": "null" } ], "default": null, "title": "Mod File" }, "capture_file": { "anyOf": [ { "format": "path", "type": "string" }, { "type": "null" } ], "default": null, "title": "Capture File" } }, "required": [ "existing_project", "project_file" ] }
- Fields:
capture_file (pathlib.Path | None)
existing_mods (List[pathlib.Path] | None)
existing_project (bool)
mod_file (pathlib.Path | None)
project_file (pathlib.Path)
remix_directory (pathlib.Path | None)
- Validators:
_are_all_mod_files_valid
»existing_mods
_is_capture_file_valid
»capture_file
_is_mod_file_valid
»mod_file
_is_project_file_valid
»project_file
_is_remix_directory_valid
»remix_directory
- field capture_file: Path | None = None#
- Validated by:
_is_capture_file_valid
- field existing_mods: List[Path] | None = None#
- Validated by:
_are_all_mod_files_valid
- field existing_project: bool [Required]#
- field mod_file: Path | None = None#
- Validated by:
_is_mod_file_valid
- field project_file: Path [Required]#
- Validated by:
_is_project_file_valid
- field remix_directory: Path | None = None#
- Validated by:
_is_remix_directory_valid
- classmethod are_all_mod_files_valid(v, values: dict)#
Check that the paths are valid mod layers
- classmethod are_project_symlinks_valid(
- project_path: Path,
- classmethod is_capture_file_valid(v, values: dict)#
Check that the file is a valid capture file or None
- classmethod is_mod_file_valid(v, values: dict)#
Check that the file is a valid mod file or None
- classmethod is_project_file_valid(v, values: dict)#
Check that the path is a valid project file
- classmethod is_remix_directory_valid(v, values: dict)#
Check that the path is a valid capture directory