diff --git a/Makefile b/Makefile index ef642dc..bb3fc37 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,8 @@ install-bin: for binfile in bin/*.rb ; do \ BINFILE=`basename $$binfile |sed -e 's/.rb$$//'`; \ install -D -o root -g root -m 755 $$binfile $(BINDIR)/$$BINFILE; \ - sed -i -e 's|^QASIM_INCLUDE_DIR.*|QASIM_INCLUDE_DIR = "/usr/share/$(NAME)"|' $(BINDIR)/$$BINFILE; \ + sed -i -e 's|^QASIM_INCLUDE_DIR.*|QASIM_INCLUDE_DIR = "/usr/share/$(NAME)/lib"|' $(BINDIR)/$$BINFILE; \ + sed -i -e 's|^QASIM_DATA_DIR.*|QASIM_DATA_DIR = "/usr/share/$(NAME)"|' $(BINDIR)/$$BINFILE; \ done #install -D -o root -g root -m 755 $(CURDIR)/bin/$(NAME)-gui.rb $(BINDIR)/$(NAME)-gui diff --git a/bin/qasim-gui.rb b/bin/qasim-gui.rb index 8a7b2b8..ef4bd12 100755 --- a/bin/qasim-gui.rb +++ b/bin/qasim-gui.rb @@ -9,7 +9,9 @@ require 'pp' require 'set' require 'fcntl' -QASIM_INCLUDE_DIR = "." +QASIM_INCLUDE_DIR = "lib" +QASIM_DATA_DIR = "." + $:.push QASIM_INCLUDE_DIR require 'qasim/constants'