Plugins/VcsPlugins/vcsMercurial/HgUtilities.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3302
e92f0dd51979
child 3656
441956d8fce5
equal deleted inserted replaced
3456:96232974dcdb 3484:645c12de6b0c
16 import Utilities 16 import Utilities
17 17
18 18
19 def getConfigPath(): 19 def getConfigPath():
20 """ 20 """
21 Public method to get the filename of the config file. 21 Public function to get the filename of the config file.
22 22
23 @return filename of the config file (string) 23 @return filename of the config file (string)
24 """ 24 """
25 if Utilities.isWindowsPlatform(): 25 if Utilities.isWindowsPlatform():
26 userprofile = os.environ["USERPROFILE"] 26 userprofile = os.environ["USERPROFILE"]
30 return os.path.join(homedir, ".hgrc") 30 return os.path.join(homedir, ".hgrc")
31 31
32 32
33 def prepareProcess(proc, encoding="", language=""): 33 def prepareProcess(proc, encoding="", language=""):
34 """ 34 """
35 Public method to prepare the given process. 35 Public function to prepare the given process.
36 36
37 @param proc reference to the proces to be prepared (QProcess) 37 @param proc reference to the proces to be prepared (QProcess)
38 @param encoding encoding to be used by the process (string) 38 @param encoding encoding to be used by the process (string)
39 @param language language to be set (string) 39 @param language language to be set (string)
40 """ 40 """

eric ide

mercurial