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 |
|
22 @rtype str |
22 """ |
23 """ |
23 if OSUtilities.isWindowsPlatform(): |
24 if OSUtilities.isWindowsPlatform(): |
24 userprofile = os.environ["USERPROFILE"] |
25 userprofile = os.environ["USERPROFILE"] |
25 return os.path.join(userprofile, ".gitconfig") |
26 return os.path.join(userprofile, ".gitconfig") |
26 else: |
27 else: |
30 |
31 |
31 def prepareProcess(proc, language=""): |
32 def prepareProcess(proc, language=""): |
32 """ |
33 """ |
33 Public function to prepare the given process. |
34 Public function to prepare the given process. |
34 |
35 |
35 @param proc reference to the process to be prepared (QProcess) |
36 @param proc reference to the process to be prepared |
36 @param language language to be set (string) |
37 @type QProcess |
|
38 @param language language to be set |
|
39 @type str |
37 """ |
40 """ |
38 env = QProcessEnvironment.systemEnvironment() |
41 env = QProcessEnvironment.systemEnvironment() |
39 |
42 |
40 # set the language for the process |
43 # set the language for the process |
41 if language: |
44 if language: |