139 if isWindowsPlatform(): |
139 if isWindowsPlatform(): |
140 cdn = "_eric6" |
140 cdn = "_eric6" |
141 else: |
141 else: |
142 cdn = ".eric6" |
142 cdn = ".eric6" |
143 |
143 |
144 hp = QDir.homePath() |
144 hp = os.path.join(os.path.expanduser("~"), cdn) |
145 dn = QDir(hp) |
145 if not os.path.exists(hp): |
146 dn.mkdir(cdn) |
146 os.mkdir(hp) |
147 hp += "/" + cdn |
147 return hp |
148 return QDir.toNativeSeparators(hp) |
|
149 |
148 |
150 |
149 |
151 def setConfigDir(d): |
150 def setConfigDir(d): |
152 """ |
151 """ |
153 Module function to set the name of the directory storing the config data. |
152 Module function to set the name of the directory storing the config data. |