Skip to content

Commit 2e3da10

Browse files
Konstantin Vlasovmwichmann
authored andcommitted
Absolute paths made relative (to support non-installable AppChecker).
1 parent 827c4ee commit 2e3da10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/lsbappchk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import os
99
import string
1010
# modulefinder does all the heavy lifting
11-
sys.path.append('/opt/lsb/share/appchk')
11+
sys.path.append(sys.path[0] + '/../share/appchk')
1212
import lsb_modulefinder
1313
import tetj
1414
version = '0.3'
@@ -135,7 +135,7 @@ def main(argv):
135135
# drop our path to the tet module and preserve a pristine sys.path
136136
syspath_org = sys.path[:-1]
137137

138-
sharepath = '/opt/lsb/share/appchk'
138+
sharepath = sys.path[0] + '/../share/appchk'
139139

140140
# where the target program names begin?
141141
# Let's consider all arguments after options as program names

0 commit comments

Comments
 (0)