Plugins/VcsPlugins/vcsSubversion/SvnUtilities.py

Mon, 05 Apr 2010 11:08:19 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 05 Apr 2010 11:08:19 +0000
changeset 171
0bb5b5e2e219
parent 96
9624a110667d
child 791
9ec2ac20e54e
permissions
-rw-r--r--

Changed the log browser dialog to show the error log only, if there is any contents.

# -*- coding: utf-8 -*-

# Copyright (c) 2006 - 2010 Detlev Offenbach <detlev@die-offenbachs.de>
#

"""
Module implementing some common utility functions for the subversion package.
"""

import os

import Utilities

def getServersPath():
    """
    Public method to get the filename of the servers file.
    
    @return filename of the servers file (string)
    """
    if Utilities.isWindowsPlatform():
        appdata = os.environ["APPDATA"]
        return os.path.join(appdata, "Subversion", "servers")
    else:
        homedir = Utilities.getHomeDir()
        return os.path.join(homedir, ".subversion", "servers")

def getConfigPath():
    """
    Public method to get the filename of the config file.
    
    @return filename of the config file (string)
    """
    if Utilities.isWindowsPlatform():
        appdata = os.environ["APPDATA"]
        return os.path.join(appdata, "Subversion", "config")
    else:
        homedir = Utilities.getHomeDir()
        return os.path.join(homedir, ".subversion", "config")

eric ide

mercurial