Plugins/VcsPlugins/vcsMercurial/HgUtilities.py

changeset 178
dd9f0bca5e2f
child 791
9ec2ac20e54e
equal deleted inserted replaced
177:c822ccc4d138 178:dd9f0bca5e2f
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2010 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing some common utility functions for the Mercurial package.
8 """
9
10 import os
11
12 import Utilities
13
14 def getConfigPath():
15 """
16 Public method to get the filename of the config file.
17
18 @return filename of the config file (string)
19 """
20 if Utilities.isWindowsPlatform():
21 userprofile = os.environ["USERPROFILE"]
22 return os.path.join(userprofile, "Mercurial.ini")
23 else:
24 homedir = Utilities.getHomeDir()
25 return os.path.join(homedir, ".hgrc")

eric ide

mercurial