lucascanalla / gitso

Automatically exported from code.google.com/p/gitso
0 stars 0 forks source link

Win32 Gitso does not read distributed hosts.txt #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Modify the hosts.txt, adding host names/ip addresses. Start Gitso. Just see
the default "Enter/Select Support Address" text in the address box. Using
FileMon, it appears Gitso is looking for the hosts.txt file in the location:

C:\program files\Gitso\library.zip\hosts.txt

which results in a "PATH NOT FOUND" in windows.

Gitso 0.5, platform is Windows XP Professional, SP3. Reproduced on two
machines.

Original issue reported on code.google.com by ansa...@gmail.com on 2 Dec 2008 at 5:58

GoogleCodeExporter commented 8 years ago
Do you know why it is trying to access library.zip file? I have never seen this
before.... Are you trying to run it from within a zip archive?

Original comment by gerbe...@gmail.com on 8 Dec 2008 at 4:46

GoogleCodeExporter commented 8 years ago
I don't know why it's doing this. I just now downloaded the gitso-install.exe 
from
the site on two additional Windows XP machines, opened the hosts.txt file in
c:\program files\gitso\hosts.txt and added a couple hosts. Saved and closed the 
hosts
file. Start Gitso from the start menu, hosts that were added to the hosts.txt 
file do
not show in the dropdown list. One machine was Windows XP Professional SP3 the 
other
XP Home with SP3. Any debugging tips appreciated!

Original comment by ansa...@gmail.com on 9 Dec 2008 at 2:23

GoogleCodeExporter commented 8 years ago
I can confirm this problem. The application does not read the hosts.txt file.
Here is the PATH NOT FOUND error line froom FileMon...
13:01   Gitso.exe:1948  QUERY INFORMATION   C:\Program 
Files\Gitso\library.zip\hosts.txt   PATH NOT FOUND  Attributes: Error

I worked around it by modifying line 406 in gitso.py to read:
prefFile = os.path.join(os.path.expanduser("~"), "Local Settings", "Application 
Data", "gitso-hosts")

(Removed the . from .gitso-hosts as Windows didn't like a filename with a . in 
front 
of it) 

and rebuilt the app, then placed a file called gitso.hosts containing the hosts 
to 
appear in the dropdown in C:\Documents and Settings\<username>\Local 
Settings\Application Data
It's a bit of a kludge, as it would be nice not to have to edit a file outside 
the 
gitso directory, but it'll work for now. And as this is my first ever look at 
Python, I don't know enough to tell you why the app is looking where it is for 
the 
hosts.txt file.  :(

Original comment by 19kev...@gmail.com on 9 Dec 2008 at 6:16

GoogleCodeExporter commented 8 years ago
I also found that gitso does update the gitso-hosts file after making this 
change..type a host name in the box, and it get's added to the file.

Original comment by 19kev...@gmail.com on 9 Dec 2008 at 6:32

GoogleCodeExporter commented 8 years ago

Original comment by gerbe...@gmail.com on 11 Jan 2009 at 8:34

GoogleCodeExporter commented 8 years ago
Issue 20 has been merged into this issue.

Original comment by gerbe...@gmail.com on 17 Aug 2009 at 1:07

GoogleCodeExporter commented 8 years ago
Issue 33 has been merged into this issue.

Original comment by gerbe...@gmail.com on 22 Feb 2010 at 4:17

GoogleCodeExporter commented 8 years ago
Issue 11 has been merged into this issue.

Original comment by gerbe...@gmail.com on 22 Feb 2010 at 4:18

GoogleCodeExporter commented 8 years ago
Updated to path to use the %USERPROFILE% variable. Also added a check to see if 
the
path exists before trying to write to it.

Original comment by gerbe...@gmail.com on 22 Feb 2010 at 4:20