Fix wrapper scripts
Reported-by: Gene Czarcinski <gene@czarc.net>
This commit is contained in:
parent
ffb876e3a1
commit
3ef6e4d539
File diff suppressed because it is too large
Load Diff
2
setup.py
2
setup.py
|
@ -84,7 +84,7 @@ class my_build(build_extra):
|
|||
os.mkdir("build")
|
||||
|
||||
for app in cmds:
|
||||
sharepath = os.path.join(cliconfig.asset_dir, app)
|
||||
sharepath = os.path.join(cliconfig.install_asset_dir, app)
|
||||
|
||||
wrapper = "#!/bin/sh\n\n"
|
||||
wrapper += "exec \"%s\" \"$@\"" % (sharepath)
|
||||
|
|
|
@ -46,11 +46,12 @@ __version__ = "0.9.4"
|
|||
# We should map this into the config somehow but I question if anyone cares
|
||||
prefix = _get_param("prefix", "/usr")
|
||||
gettext_dir = os.path.join(prefix, "share", "locale")
|
||||
install_asset_dir = os.path.join(prefix, "share", "virt-manager")
|
||||
if os.getcwd() == _srcdir:
|
||||
asset_dir = _srcdir
|
||||
icon_dir = os.path.join(_srcdir, "data")
|
||||
else:
|
||||
asset_dir = os.path.join(prefix, "share", "virt-manager")
|
||||
asset_dir = install_asset_dir
|
||||
icon_dir = os.path.join(asset_dir, "icons")
|
||||
|
||||
with_tui = bool(int(_get_param("with_tui", "1")))
|
||||
|
|
Loading…
Reference in New Issue