gitso

gitso Commit Details


Date:2010-02-21 20:20:24 (14 years 10 months ago)
Author:gerberad
Branch:master
Commit:3492cbbaa459f1a8aa5c94107044f6b0833012b6
Parents: a69817538ddb74e3112e7e90ecdfff1f63c8cbb9
Message:/trunk/ArgsParser.py Changed location of gitso-hosts on windows users. Now uses USERPROFILE.

/trunk/ConnectionWindow.py
Before it tries to write to the hosts file, it checks to see if it's there.
Changes:

File differences

gitso/trunk/ArgsParser.py
130130
131131
132132
133
133
134134
135135
136136
os.makedirs(self.paths['preferences'], 0700)
self.paths['preferences'] = os.path.join(self.paths['preferences'], "hosts")
elif sys.platform == "win32":
self.paths['preferences'] = os.path.join(os.getenv('APPDATA'), "gitso-hosts")
self.paths['preferences'] = os.path.join(os.getenv('USERPROFILE'), "gitso-hosts")
else:
self.paths['preferences'] = os.path.join(os.path.expanduser("~"), ".gitso-hosts")
gitso/trunk/ConnectionWindow.py
309309
310310
311311
312
313
314
312
313
314
315
315316
316317
317318
def saveHost(self, file, host):
handle = open(file, 'a')
handle.write(", %s" % host)
handle.close()
if os.path.exists(file):
handle = open(file, 'a')
handle.write(", %s" % host)
handle.close()
def displayHostBox(self, list, text):
self.hostField = wx.ComboBox(self, 30, "", wx.Point(105, 12), wx.Size(230, -1), list, wx.CB_DROPDOWN)

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.06206s using 13 queries.