Fix shared directory detection
This commit is contained in:
@@ -56,7 +56,7 @@ def get_share_dir():
|
||||
class Frontend():
|
||||
|
||||
def __init__(self):
|
||||
self.uipath = os.path.join(get_share_dir(), "yms", "ui")
|
||||
self.uipath = os.path.join(get_share_dir(), "ui")
|
||||
builder = Gtk.Builder()
|
||||
builder.add_from_file(os.path.join(self.uipath, "main.ui"))
|
||||
builder.connect_signals(self)
|
||||
@@ -90,7 +90,8 @@ class Frontend():
|
||||
|
||||
# load shape of vessel if available
|
||||
handle = Rsvg.Handle()
|
||||
self._svg = handle.new_from_file(os.path.join(sys.path[0], cfg['shapedir'], "elizabethan29.svg"))
|
||||
self._svg = handle.new_from_file(os.path.join(get_share_dir(), "shapes", "elizabethan29.svg"))
|
||||
#self._svg = handle.new_from_file(os.path.join(sys.path[0], cfg['shapedir'], "elizabethan29.svg"))
|
||||
#viewport = Rsvg.Rectangle()
|
||||
#viewport.x = 0
|
||||
#viewport.y = 0
|
||||
|
||||
Reference in New Issue
Block a user