Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120994479
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
Tue, Jul 8, 05:37
Size
1 KB
Mime Type
text/x-python
Expires
Thu, Jul 10, 05:37 (2 d)
Engine
blob
Format
Raw Data
Handle
27275946
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