Skip to content

Commit

Permalink
Fix Python module path
Browse files Browse the repository at this point in the history
  • Loading branch information
aperezdc committed Nov 27, 2016
1 parent 4b5024c commit 9f38277
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -22,6 +22,6 @@ run: $(APP_ID).gresource gschemas.compiled

install:
SKIP_ICON_CACHE_UPDATE=1 ./install.sh --prefix='$(PREFIX)' $(if $(DESTDIR),--destdir='$(DESTDIR)')
python3 -m compileall $(if $(DESTDIR),-d '$(DESTDIR)') $(DESTDIR)$(PREFIX)/share/revolt/*.py
python3 -m compileall $(if $(DESTDIR),-d '$(DESTDIR)') $(DESTDIR)$(PREFIX)/share/revolt/py/revolt/*.py

.PHONY: install run
2 changes: 1 addition & 1 deletion bin/revolt
Expand Up @@ -15,7 +15,7 @@ def adjust_import_path():
sys.path.insert(0, P.dirname(P.dirname(__file__)))
else:
sys.path.insert(0, P.join(P.dirname(P.dirname(__file__)),
"share", "revolt"))
"share", "revolt", "py"))


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Expand Up @@ -17,7 +17,7 @@ install-glib-gschema "${APP_ID}.gschema.xml"
install-prefixed share/revolt "${APP_ID}.gresource" -m644

for file in revolt/*.py ; do
install-prefixed share/revolt "${file}" -m644
install-prefixed share/revolt/py/revolt "${file}" -m644
done

for size in 16x16 16x16@2x 24x24 24x24@2x 32x32 64x64 ; do
Expand Down

0 comments on commit 9f38277

Please sign in to comment.