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
8a5a1b50
Commit
8a5a1b50
authored
Jun 29, 2022
by
Anna-Maria Amelkina
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://sa2systems.ru:88/com/pycomsdk
into dev
parents
5c05d4ae
ebfc68c5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
communication.py
comsdk/communication.py
+3
-0
research.py
comsdk/research.py
+6
-2
No files found.
comsdk/communication.py
View file @
8a5a1b50
...
...
@@ -178,7 +178,10 @@ class LocalCommunication(BaseCommunication):
command_line
+=
'cd {} && {}'
.
format
(
working_dir
,
command
)
#self._print_exec_msg(command_line, is_remote=False)
#res = subprocess.call([command_line], shell=True)
<<<<<<<
HEAD
# print(command_line)
=======
>>>>>>>
ebfc68c5c8e9bd0bb9dbfa793484ea58d4e5a1e7
res
=
subprocess
.
run
(
command_line
,
shell
=
True
)
return
[],
[]
...
...
comsdk/research.py
View file @
8a5a1b50
...
...
@@ -312,15 +312,19 @@ class ResearchDoesNotExist(Exception):
def
make_suitable_name
(
name
:
str
)
->
str
:
return
'-'
.
join
(
name
.
split
())
def
make_suitable_task_name
(
name
:
str
)
->
str
:
return
'_'
.
join
(
name
.
split
())
def
make_suitable_research_dir
(
descr
:
str
)
->
str
:
return
'
_
'
.
join
([
str
(
date
.
today
()),
make_suitable_name
(
descr
)])
return
'
-
'
.
join
([
str
(
date
.
today
()),
make_suitable_name
(
descr
)])
def
get_task_full_name
(
task_number
:
int
,
task_name
:
str
)
->
str
:
return
str
(
task_number
)
+
'-'
+
make_suitable_name
(
task_name
)
return
str
(
task_number
)
+
'-'
+
make_suitable_
task_
name
(
task_name
)
def
split_task_dir
(
task_dir
:
str
)
->
(
int
,
str
):
...
...
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