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
64067832
Commit
64067832
authored
3 years ago
by
Anton Pershin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed wrong slash for Host
parent
7e39d6e1
master
dev
dev_parser_aDOT
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
communication.py
comsdk/communication.py
+8
-1
No files found.
comsdk/communication.py
View file @
64067832
...
@@ -38,10 +38,13 @@ class Host(object):
...
@@ -38,10 +38,13 @@ class Host(object):
'if you want to use it.'
)
'if you want to use it.'
)
path_to_prog
=
self
.
programs
[
prog_name
]
path_to_prog
=
self
.
programs
[
prog_name
]
if
path_to_prog
is
not
None
:
if
path_to_prog
is
not
None
:
return
self
.
programs
[
prog_name
]
+
'/'
+
prog_name
return
self
.
join_path
(
self
.
programs
[
prog_name
],
prog_name
)
else
:
else
:
return
prog_name
return
prog_name
def
join_path
(
self
,
*
path_list
):
return
os
.
path
.
join
(
*
path_list
)
class
RemoteHost
(
Host
):
class
RemoteHost
(
Host
):
'''
'''
...
@@ -75,6 +78,10 @@ class RemoteHost(Host):
...
@@ -75,6 +78,10 @@ class RemoteHost(Host):
self
.
set_job_id
=
aux
.
load_function_from_module
(
state
[
'job_setter'
])
self
.
set_job_id
=
aux
.
load_function_from_module
(
state
[
'job_setter'
])
self
.
check_task_finished
=
aux
.
load_function_from_module
(
state
[
'job_finished_checker'
])
self
.
check_task_finished
=
aux
.
load_function_from_module
(
state
[
'job_finished_checker'
])
def
join_path
(
self
,
path_list
):
# For RemoteHost, we assume that it is posix-based
return
'/'
.
join
(
path_list
)
# Decorator
# Decorator
def
enable_sftp
(
func
):
def
enable_sftp
(
func
):
...
...
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