Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91974451
wizard_helpers.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
Sat, Nov 16, 07:21
Size
1007 B
Mime Type
text/x-python
Expires
Mon, Nov 18, 07:21 (2 d)
Engine
blob
Format
Raw Data
Handle
22355610
Attached To
R6625 Oncilla Simulation
wizard_helpers.py
View Options
# Oncilla Simulation Wizard
import
os
import
sys
def
create_new_project_folder
(
path
):
try
:
os
.
mkdir
(
path
)
except
OSError
as
e
:
if
e
.
errno
==
17
:
print
''' Error: The given folder is not empty. If it's already a
proper simulation project, try calling 'update_project' instead.'''
else
:
print
"I/O error({0}): {1}"
.
format
(
e
.
errno
,
e
.
strerror
)
def
check_for_project_folder
(
path
):
# Check if path is existing
# Check for some features (contained files/folders)
print
""
def
provide_project_template
(
path
):
print
""
def
export_template_to_new_project
(
path
):
print
""
def
provide_project_template
(
path
):
print
""
def
print_help
():
print
'''Usage:
python oncilla_wizard.py [create_project update_project] path
create_project Will create a completely new project from scratch, with
examples included.
update_project Will update an already existing project.
'''
exit
()
Event Timeline
Log In to Comment