-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sebastian Schleemilch <[email protected]>
- Loading branch information
1 parent
b898562
commit 31d1c0d
Showing
9 changed files
with
53 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright (c) 2024 Contributors to COVESA | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Mozilla Public License 2.0 which is available at | ||
# https://www.mozilla.org/en-US/MPL/2.0/ | ||
# | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
# General CONFIG variables | ||
# Custom string, which we use to escape " and ' characters in VSS node description/comments | ||
# Used in file_helper.write_graph_to_file to properly escape characters in filedata, before to write it to a file. | ||
|
||
|
||
class Config: | ||
OUTPUT_NAMESPACE: str | None = None | ||
VSPEC_VERSION: str | None = None | ||
SPLIT_DEPTH: int | None = None | ||
SAMM_TYPE = "samm" | ||
SAMM_VERSION = "2.1.0" | ||
CUSTOM_ESCAPE_CHAR = "#V2E-ESC-CHAR#" | ||
|
||
|
||
def init(output_namespace: str, vspec_version: str, split_depth: int): | ||
Config.OUTPUT_NAMESPACE = output_namespace | ||
Config.VSPEC_VERSION = vspec_version | ||
Config.SPLIT_DEPTH = split_depth if (type(split_depth) is int and split_depth > 0) else 1 |
33 changes: 0 additions & 33 deletions
33
src/vss_tools/vspec/vssexporters/vss2samm/config/config.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters