示例#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)
示例#2
0
文件: project.py 项目: I2PC/scipion
    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)
示例#3
0
文件: browser.py 项目: liz18/scipion
 def _actionHome(self, e=None):
     self._goDir(getHomePath())
示例#4
0
 def _actionHome(self, e=None):
     self._goDir(pwutils.getHomePath())
示例#5
0
 def _actionHome(self, e=None):
     self._goDir(getHomePath())