diff options
author | Sunil Shetye | 2025-01-23 17:50:17 +0530 |
---|---|---|
committer | Sunil Shetye | 2025-01-23 17:50:17 +0530 |
commit | 43e05ad42c876ef2987663f956d316976fcf4a15 (patch) | |
tree | 348ae9a983f61941a18bb6750f29f50d99db10da | |
parent | a19a37d012186325fab39867c8dd983556835af2 (diff) | |
download | Common-Interface-Project-43e05ad42c876ef2987663f956d316976fcf4a15.tar.gz Common-Interface-Project-43e05ad42c876ef2987663f956d316976fcf4a15.tar.bz2 Common-Interface-Project-43e05ad42c876ef2987663f956d316976fcf4a15.zip |
fix order of return tuple
-rw-r--r-- | blocks/Xcos/ParserFunctions.py | 2 | ||||
-rwxr-xr-x | blocks/xcos2xml/replacesplitblocks.sh | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/blocks/Xcos/ParserFunctions.py b/blocks/Xcos/ParserFunctions.py index cc0479fa..2849e302 100644 --- a/blocks/Xcos/ParserFunctions.py +++ b/blocks/Xcos/ParserFunctions.py @@ -397,7 +397,7 @@ def switchPorts(sourceVertex, sourceType, targetVertex, targetType, waypoints): waypoints.reverse() switch_split = True - return (sourceType, sourceVertex, targetType, targetVertex, switch_split) + return (sourceVertex, sourceType, targetVertex, targetType, switch_split) def getLinkStyle(attribid, sourceVertex, sourceType, targetVertex, targetType, waypoints): diff --git a/blocks/xcos2xml/replacesplitblocks.sh b/blocks/xcos2xml/replacesplitblocks.sh index 89fbee8b..3fe60922 100755 --- a/blocks/xcos2xml/replacesplitblocks.sh +++ b/blocks/xcos2xml/replacesplitblocks.sh @@ -2,9 +2,9 @@ usage() { echo "Usage:" >&2 - echo " $0 input-file.xcos > output-file.xml" >&2 - echo " $0 input-file.xml > output-file.xml" >&2 - exit 1 + echo " $0 input-file.xcos" >&2 + echo " $0 input-file.xml" >&2 + exit 101 } if test $# -ne 1; then @@ -114,7 +114,7 @@ INPUT1="$BASE.xml" echo "Creating $INPUT1" >&2 cp -f "$TMPFILE2" "$INPUT1" -rm -f "$BASE."*.xml +rm -f "$BASE-"*.xml oldrv=100 |