예제 #1
0
파일: install.py 프로젝트: fp7-alien/C-BAS
import os
from utils import utils

"""
@author: CarolinaFernandez

Installs OCF modules and external libraries/dependencies.
"""

# Show choice screen for OCF modules available for install
ocf_modules_install = utils.invoke_splash_screen("install", utils.get_modules())

if ocf_modules_install:
    # Perform installation of common files
    utils.install_dependencies(utils.common_path, ocf_modules_install)
    # Perform installation of external libraries+dependencies
    utils.install_dependencies(utils.dependencies_path, ocf_modules_install)
    # Perform installation of available modules
    utils.install_modules(ocf_modules_install)
예제 #2
0
import os
from utils import utils

"""
@author: CarolinaFernandez

Installs OCF modules and external libraries/dependencies.
"""

# Show choice screen for OCF modules available for install
ocf_modules_install = utils.invoke_splash_screen("install", utils.get_modules())

if ocf_modules_install:
    # Perform installation of common files
    utils.install_dependencies(utils.common_path, ocf_modules_install)
    # Perform installation of external libraries+dependencies
    utils.install_dependencies(utils.dependencies_path, ocf_modules_install)
    # Perform installation of available modules
    utils.install_modules(ocf_modules_install)

# Show ending screen
utils.invoke_ending_screen("Installation")
예제 #3
0
import os
from utils import utils
"""
@author: CarolinaFernandez

Installs OCF modules and external libraries/dependencies.
"""

# Show choice screen for OCF modules available for install
ocf_modules_install = utils.invoke_splash_screen("install",
                                                 utils.get_modules())

if ocf_modules_install:
    # Perform installation of common files
    utils.install_dependencies(utils.common_path, ocf_modules_install)
    # Perform installation of external libraries+dependencies
    utils.install_dependencies(utils.dependencies_path, ocf_modules_install)
    # Perform installation of available modules
    utils.install_modules(ocf_modules_install)
예제 #4
0
import os
from utils import utils

"""
@author: CarolinaFernandez

Migrate OCF components to another physical location within the host.
"""

# Show input screen to set new path for OCF components
new_location = utils.invoke_splash_screen("migrate", utils.get_modules())

if new_location:
    # Perform migration to new location
    utils.migrate_framework(new_location[0])

# Show ending screen. Cannot run when files are migrated
#utils.invoke_ending_screen("Migration")