pyworkflow.config module

class pyworkflow.config.Config[source]

Bases: object

Main Config for pyworkflow. It contains the main configuration values providing default values or, if present, taking them from the environment. It has SCIPION_HOME, SCIPION_USER_DATA … Necessary value is SCIPION_HOME and has to be present in the environment

class Root(root)[source]

Bases: object

Simple helper to return path from a root.

join(*path)[source]
SCIPION_CONFIG = 'scipion.conf'
SCIPION_CWD = '/home/yunior/Yunior/Projects/Buildbot/devel/docs'
SCIPION_DOMAIN = None
SCIPION_FONT_NAME = 'Helvetica'
SCIPION_FONT_SIZE = 10
SCIPION_HOME = '/home/yunior/Yunior/Projects/Buildbot/buildbot/worker/devel/scipion'
SCIPION_HOSTS = 'hosts.conf'
SCIPION_LOCAL_CONFIG = '/home/yunior/.config/scipion/scipion_devel.conf'
SCIPION_LOG = '/home/yunior/ScipionUserData/logs/scipion.log'
SCIPION_LOGS = '/home/yunior/ScipionUserData/logs'
SCIPION_NOTES_ARGS = None
SCIPION_NOTES_FILE = 'notes.txt'
SCIPION_NOTES_PROGRAM = None
SCIPION_NOTIFY = 'True'
SCIPION_PLUGIN_JSON = 'plugins.json'
SCIPION_PLUGIN_REPO_URL = 'http://scipion.i2pc.es/getplugins/'
SCIPION_PROTOCOLS = 'protocols.conf'
SCIPION_SOFTWARE = '/home/yunior/Yunior/Projects/Buildbot/buildbot/worker/devel/scipion/software'
SCIPION_SUPPORT_EMAIL = 'scipion@cnb.csic.es'
SCIPION_TESTS = '/home/yunior/Yunior/Projects/Buildbot/buildbot/worker/devel/scipion/data/tests'
SCIPION_TESTS_CMD = '/home/yunior/Yunior/Projects/Buildbot/buildbot/worker/devel/scipion/scipion-pyworkflow/pyworkflow/apps/pw_run_tests.py'
SCIPION_TESTS_OUTPUT = '/home/yunior/ScipionUserData/Tests'
SCIPION_TMP = '/home/yunior/ScipionUserData/tmp'
SCIPION_URL = 'http://scipion.cnb.csic.es/downloads/scipion'
SCIPION_URL_SOFTWARE = 'http://scipion.cnb.csic.es/downloads/scipion/software'
SCIPION_URL_TESTDATA = 'http://scipion.cnb.csic.es/downloads/scipion/data/tests'
SCIPION_USER_DATA = '/home/yunior/ScipionUserData'
VIEWERS = {}
WIZARD_MASK_COLOR = '[0.125, 0.909, 0.972]'
static debugOn(*args)[source]
classmethod getBindingsFolder()[source]

Folder where bindings must be placed. This folder is added to sys.path at launching time. If the binding depends on a dynamic libraries, those must be placed at cls.getLibFolder() :return: The bindings folder

classmethod getDomain()[source]

Import domain module from path or name defined in SCIPION_DOMAIN.

classmethod getExternalJsonTemplates()[source]
classmethod getLibFolder()[source]
Returns:Folder where libraries must be placed in case a binding needs them
classmethod getLogsFolder()[source]

Folder where scipion logs must be placed. The folder is created

static getPythonLibFolder()[source]
classmethod getVars()[source]

Return a dictionary with all variables defined in this Config.

classmethod getWizardMaskColor()[source]
classmethod printVars()[source]

Print the variables dict, mostly for debugging.

classmethod setDomain(moduleOrNameOrPath)[source]
static toggleDebug()[source]
pyworkflow.config.findResource(filename)[source]
pyworkflow.config.genNotesHeading()[source]
pyworkflow.config.getAppsPath(*paths)[source]
pyworkflow.config.getModuleFolder(moduleName)[source]

Returns the path of a module without importing it

pyworkflow.config.getPwProtMpiRunScript()[source]
pyworkflow.config.getPyworkflowPath()[source]

Returns the path where pyworkflow is

pyworkflow.config.getScheduleScript()[source]
pyworkflow.config.getSyncDataScript()[source]
pyworkflow.config.getTestsScript()[source]
pyworkflow.config.getViewerScript()[source]
pyworkflow.config.join(*paths)[source]

join paths from HOME .