Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pycomsdk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
com
pycomsdk
Commits
5ff51f88
Commit
5ff51f88
authored
3 years ago
by
Anton Pershin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a message showing up when the program is not found
parent
edc8863b
master
dev
dev_parser_aDOT
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
communication.py
comsdk/communication.py
+5
-0
No files found.
comsdk/communication.py
View file @
5ff51f88
...
...
@@ -31,6 +31,11 @@ class Host(object):
self
.
commands
[
cmd_name
]
=
cmd
def
get_program_launch_path
(
self
,
prog_name
):
if
prog_name
not
in
self
.
programs
:
raise
ValueError
(
'Program "{prog_name}" is not recognized. '
'Please add this program to "custom_programs" '
'in the corresponding host in the config file '
'if you want to use it.'
)
path_to_prog
=
self
.
programs
[
prog_name
]
if
path_to_prog
is
not
None
:
return
self
.
programs
[
prog_name
]
+
'/'
+
prog_name
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment