Plugins/VcsPlugins/vcsMercurial/HgUtilities.py

changeset 3302
e92f0dd51979
parent 3160
209a07d7e401
child 3484
645c12de6b0c
equal deleted inserted replaced
3300:734353e7d679 3302:e92f0dd51979
14 import Utilities 14 import Utilities
15 15
16 16
17 def getConfigPath(): 17 def getConfigPath():
18 """ 18 """
19 Public method to get the filename of the config file. 19 Public function to get the filename of the config file.
20 20
21 @return filename of the config file (string) 21 @return filename of the config file (string)
22 """ 22 """
23 if Utilities.isWindowsPlatform(): 23 if Utilities.isWindowsPlatform():
24 userprofile = os.environ["USERPROFILE"] 24 userprofile = os.environ["USERPROFILE"]
28 return os.path.join(homedir, ".hgrc") 28 return os.path.join(homedir, ".hgrc")
29 29
30 30
31 def prepareProcess(proc, encoding="", language=""): 31 def prepareProcess(proc, encoding="", language=""):
32 """ 32 """
33 Public method to prepare the given process. 33 Public function to prepare the given process.
34 34
35 @param proc reference to the proces to be prepared (QProcess) 35 @param proc reference to the proces to be prepared (QProcess)
36 @param encoding encoding to be used by the process (string) 36 @param encoding encoding to be used by the process (string)
37 @param language language to be set (string) 37 @param language language to be set (string)
38 """ 38 """

eric ide

mercurial