src/eric7/Plugins/VcsPlugins/vcsGit/GitUtilities.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9413
80c06d472826
equal deleted inserted replaced
9220:e9e7eca7efee 9221:bf71ee032bb4
15 15
16 16
17 def getConfigPath(): 17 def getConfigPath():
18 """ 18 """
19 Public function 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"]
25 return os.path.join(userprofile, ".gitconfig") 25 return os.path.join(userprofile, ".gitconfig")
29 29
30 30
31 def prepareProcess(proc, language=""): 31 def prepareProcess(proc, language=""):
32 """ 32 """
33 Public function to prepare the given process. 33 Public function to prepare the given process.
34 34
35 @param proc reference to the process to be prepared (QProcess) 35 @param proc reference to the process to be prepared (QProcess)
36 @param language language to be set (string) 36 @param language language to be set (string)
37 """ 37 """
38 env = QProcessEnvironment.systemEnvironment() 38 env = QProcessEnvironment.systemEnvironment()
39 39
40 # set the language for the process 40 # set the language for the process
41 if language: 41 if language:
42 env.insert("LANGUAGE", language) 42 env.insert("LANGUAGE", language)
43 43
44 proc.setProcessEnvironment(env) 44 proc.setProcessEnvironment(env)

eric ide

mercurial