Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65788471
app_edit.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jun 6, 05:50
Size
1 KB
Mime Type
text/x-python
Expires
Sat, Jun 8, 05:50 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
18115142
Attached To
rWIRELESGPU wireles-gpu
app_edit.py
View Options
#!/usr/bin/env python
'''
Created on 18.04.2018
@author: trevaz (tristan.revaz@epfl.ch)
---------------------------------------------------------------------------------
app: edit
---------------------------------------------------------------------------------
'''
#################################################################################
# IMPORTS
#################################################################################
import
os
from
fctlib
import
get_case_path
#################################################################################
# CONSTANTS
#################################################################################
EDITOR_NAME
=
'nano'
#################################################################################
# MAIN FUNCTION
#################################################################################
def
edit
(
PATH
,
case_name
):
'''
DEF: edit case.
INPUT: - case_name: name of the case, type=string
OUTPUT: - ()
'''
case_path
=
get_case_path
(
PATH
,
case_name
)
os
.
system
(
EDITOR_NAME
+
' '
+
str
(
os
.
path
.
join
(
case_path
,
'input'
,
'config'
)))
Event Timeline
Log In to Comment