ryran / pyrite

OpenSSL/GnuPG encryption/signing gui for Linux implemented with Python & PyGTK
73 stars 14 forks source link

Suggestion: Restore ability to run directly from source/git download again #19

Closed lnostdal closed 9 years ago

lnostdal commented 10 years ago

This used to be so nice and convenient:

$ python pyrite.py 
Traceback (most recent call last):
  File "pyrite.py", line 85, in <module>
    FeS2 = modules.core.Pyrite(args)
  File "/home/lnostdal/pyrite/modules/core.py", line 70, in __init__
    try: builder.add_from_file(cfg.ASSETDIR + 'ui/main.glade') 
glib.GError: Failed to open file '/usr/share/pyrite/ui/main.glade': No such file or directory

..no need for root access etc..

ryran commented 10 years ago

Assuming you're in the source tree dir, you can fix this with:

sed -i.bak '/ASSETDIR/s,/usr/share/pyrite/,,' modules/cfg.py