Ejemplo n.º 1
0
    def _openConfigFile(self, configFile, userOnly=False):
        """ Open an Scipion configuration file, if the user have one defined,
        also open that one with the defined text editor.
        """
        if not userOnly:
            _open_cmd(pw.getConfigPath(configFile))

        userHostConf = os.path.join(pwutils.getHomePath(), '.config',
                                    'scipion', configFile)
        if os.path.exists(userHostConf):
            _open_cmd(userHostConf)
Ejemplo n.º 2
0
    def _openConfigFile(self, configFile, userOnly=False):
        """ Open an Scipion configuration file, if the user have one defined,
        also open that one with the defined text editor.
        """
        if not userOnly:
            _open_cmd(pw.getConfigPath(configFile))

        userHostConf = os.path.join(pwutils.getHomePath(),
                                    '.config', 'scipion', configFile)
        if os.path.exists(userHostConf):
            _open_cmd(userHostConf)
Ejemplo n.º 3
0
 def _actionHome(self, e=None):
     self._goDir(getHomePath())
Ejemplo n.º 4
0
 def _actionHome(self, e=None):
     self._goDir(pwutils.getHomePath())
Ejemplo n.º 5
0
 def _actionHome(self, e=None):
     self._goDir(getHomePath())