Esempio 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)
Esempio 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)
Esempio n. 3
0
 def _actionHome(self, e=None):
     self._goDir(getHomePath())
Esempio n. 4
0
 def _actionHome(self, e=None):
     self._goDir(pwutils.getHomePath())
Esempio n. 5
0
 def _actionHome(self, e=None):
     self._goDir(getHomePath())