hjue / gpicsync

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

Can't find default.jpg when installed to /usr/bin/ #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On Ubuntu 7.10, I used svn to check out gpicsync to /usr/bin/gpicsync, and
used the menu editor to add an entry to run gpicsync (thanks for including
an icon file!).  The problem was, gpicsync couldn't find the default.jpg file.

I edited gpicsync-GUI.py and replaced the following line:
self.imgWhite=wx.Image('default.jpg', wx.BITMAP_TYPE_ANY).ConvertToBitmap()

With:
self.imgWhite=wx.Image(os.path.abspath(os.path.dirname(sys.argv[0])) + "/"
+ 'default.jpg', wx.BITMAP_TYPE_ANY).ConvertToBitmap()

I'm a programmer with zero experience with Python, so I don't know the
proper way to do this, but it seems to work, and finds the default.jpg file
now just fine.

Thought you might want to know.

Original issue reported on code.google.com by mike.lit...@gmail.com on 4 Mar 2008 at 3:38

GoogleCodeExporter commented 9 years ago
Thanks for letting know Mike. It's been some time I didn't check the Linux 
version.
I'll see that. Thanks.

Original comment by francois...@gmail.com on 4 Mar 2008 at 6:39