pungi: Fix reading multilib config files
When running from git, the files should be found relative to the python module, not executable itself. This change makes it possible to load the files when running tests. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
adaed6345c
commit
079cc46458
@ -24,7 +24,7 @@ from ConfigParser import SafeConfigParser
|
|||||||
|
|
||||||
# In development, `here` will point to the bin/ directory with scripts.
|
# In development, `here` will point to the bin/ directory with scripts.
|
||||||
here = sys.path[0]
|
here = sys.path[0]
|
||||||
MULTILIBCONF = (os.path.join(os.path.dirname(here), 'share', 'multilib')
|
MULTILIBCONF = (os.path.join(os.path.dirname(__file__), '..', 'share', 'multilib')
|
||||||
if here != '/usr/bin'
|
if here != '/usr/bin'
|
||||||
else '/usr/share/pungi/multilib')
|
else '/usr/share/pungi/multilib')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user