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

branch
eric7
changeset 9624
b47dfa7a137d
parent 9413
80c06d472826
child 9653
e67609152c5e
equal deleted inserted replaced
9623:9c1f429cb56b 9624:b47dfa7a137d
9 9
10 import os 10 import os
11 11
12 from PyQt6.QtCore import QProcessEnvironment 12 from PyQt6.QtCore import QProcessEnvironment
13 13
14 from eric7 import Utilities 14 from eric7.SystemUtilities import OSUtilities
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 OSUtilities.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")
26 else: 26 else:
27 homedir = Utilities.getHomeDir() 27 homedir = OSUtilities.getHomeDir()
28 return os.path.join(homedir, ".gitconfig") 28 return os.path.join(homedir, ".gitconfig")
29 29
30 30
31 def prepareProcess(proc, language=""): 31 def prepareProcess(proc, language=""):
32 """ 32 """

eric ide

mercurial