Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
binary_c-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Izzard, Robert Dr (Maths & Physics)
binary_c-python
Commits
f2dbc450
Commit
f2dbc450
authored
3 years ago
by
David Hendriks
Browse files
Options
Downloads
Patches
Plain Diff
updated run system function to handle the special arguments that end with %d as well
parent
5eb3f709
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#32159
passed
3 years ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
binarycpython/utils/run_system_wrapper.py
+11
-0
11 additions, 0 deletions
binarycpython/utils/run_system_wrapper.py
with
11 additions
and
0 deletions
binarycpython/utils/run_system_wrapper.py
+
11
−
0
View file @
f2dbc450
...
...
@@ -51,6 +51,7 @@ def run_system(**kwargs):
# Load available arg keywords
available_binary_c_arg_keywords
=
get_arg_keys
()
special_keywords
=
[
el
for
el
in
list
(
available_binary_c_arg_keywords
)
if
el
.
endswith
(
"
%d
"
)]
other_keywords
=
[
"
custom_logging_code
"
,
"
log_filename
"
,
"
parse_function
"
]
...
...
@@ -66,6 +67,16 @@ def run_system(**kwargs):
if
key
in
available_binary_c_arg_keywords
:
binary_c_args
[
key
]
=
kwargs
[
key
]
elif
any
(
[
True
if
(
key
.
startswith
(
param
[:
-
2
])
and
len
(
param
[:
-
2
])
<
len
(
key
))
else
False
for
param
in
special_keywords
]
):
binary_c_args
[
key
]
=
kwargs
[
key
]
# Notify user when this key wont be used
else
:
if
not
key
in
other_keywords
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment