src/eric7/Plugins/VcsPlugins/vcsSubversion/SvnUtilities.py

branch
eric7
changeset 9624
b47dfa7a137d
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
equal deleted inserted replaced
9623:9c1f429cb56b 9624:b47dfa7a137d
8 """ 8 """
9 9
10 import contextlib 10 import contextlib
11 import os 11 import os
12 12
13 from eric7 import Utilities 13 from eric7.SystemUtilities import OSUtilities
14 14
15 from .Config import DefaultConfig, DefaultIgnores 15 from .Config import DefaultConfig, DefaultIgnores
16 16
17 17
18 def getServersPath(): 18 def getServersPath():
19 """ 19 """
20 Module function to get the filename of the servers file. 20 Module function to get the filename of the servers file.
21 21
22 @return filename of the servers file (string) 22 @return filename of the servers file (string)
23 """ 23 """
24 if Utilities.isWindowsPlatform(): 24 if OSUtilities.isWindowsPlatform():
25 appdata = os.environ["APPDATA"] 25 appdata = os.environ["APPDATA"]
26 return os.path.join(appdata, "Subversion", "servers") 26 return os.path.join(appdata, "Subversion", "servers")
27 else: 27 else:
28 homedir = Utilities.getHomeDir() 28 homedir = OSUtilities.getHomeDir()
29 return os.path.join(homedir, ".subversion", "servers") 29 return os.path.join(homedir, ".subversion", "servers")
30 30
31 31
32 def getConfigPath(): 32 def getConfigPath():
33 """ 33 """
34 Module function to get the filename of the config file. 34 Module function to get the filename of the config file.
35 35
36 @return filename of the config file (string) 36 @return filename of the config file (string)
37 """ 37 """
38 if Utilities.isWindowsPlatform(): 38 if OSUtilities.isWindowsPlatform():
39 appdata = os.environ["APPDATA"] 39 appdata = os.environ["APPDATA"]
40 return os.path.join(appdata, "Subversion", "config") 40 return os.path.join(appdata, "Subversion", "config")
41 else: 41 else:
42 homedir = Utilities.getHomeDir() 42 homedir = OSUtilities.getHomeDir()
43 return os.path.join(homedir, ".subversion", "config") 43 return os.path.join(homedir, ".subversion", "config")
44 44
45 45
46 def createDefaultConfig(): 46 def createDefaultConfig():
47 """ 47 """

eric ide

mercurial