Skip to content

Commit

Permalink
Added suggestions from @whot
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Hutterer <[email protected]>
  • Loading branch information
sp1ritCS and whot authored Nov 14, 2022
1 parent 535f4c0 commit 76de308
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 4 additions & 2 deletions tuhi-gui.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ from gi.repository import Gio

@devel@ # NOQA
if "TUHI_DEVEL" in os.environ:
resource = Gio.resource_load(os.fspath(Path(os.environ["TUHI_DEVEL"], 'data', 'tuhi.gresource')))
resource_path = Path(os.environ["TUHI_DEVEL"], 'data', 'tuhi.gresource')
else:
resource = Gio.resource_load(os.fspath(Path('@pkgdatadir@', 'tuhi.gresource')))
resource_path = Path('@pkgdatadir@', 'tuhi.gresource')

resource = resource = Gio.resource_load(os.fspath(resource_path))
Gio.Resource._register(resource)


Expand Down
8 changes: 2 additions & 6 deletions tuhi.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,8 @@ import subprocess
from pathlib import Path
import argparse

if "TUHI_DEVEL" in os.environ:
tuhi_server = Path(os.environ["TUHI_DEVEL"], 'tuhi-server')
tuhi_gui = Path(os.environ["TUHI_DEVEL"], 'tuhi-gui')
else:
tuhi_server = Path('@libexecdir@', 'tuhi-server')
tuhi_gui = Path('@libexecdir@', 'tuhi-gui')
tuhi_server = Path(os.environ.get("TUHI_DEVEL", "@libexecdir@"), 'tuhi-server')
tuhi_gui = Path(os.environ.get("TUHI_DEVEL", "@libexecdir@"), 'tuhi-gui')


@devel@ # NOQA
Expand Down

0 comments on commit 76de308

Please sign in to comment.