add module path for _createrepo.so accepted/tizen/devbase/services/20200413.092048 accepted/tizen/devbase/services/20200415.082816 accepted/tizen/devbase/services/20200423.100448 accepted/tizen/devbase/services/20200514.023445 accepted/tizen/devbase/services/20200520.012714 submit/trunk/20200410.154020 submit/trunk/20200410.160020 submit/trunk/20200413.132320 submit/trunk/20200413.150000 submit/trunk/20200413.151000 submit/trunk/20200414.141500 submit/trunk/20200414.191000 submit/trunk/20200422.115210 submit/trunk/20200422.142510 submit/trunk/20200422.165210 submit/trunk/20200423.102810 submit/trunk/20200423.111223 submit/trunk/20200423.115423 submit/trunk/20200423.122334 submit/trunk/20200513.162810 submit/trunk/20200519.161030 submit/trunk/20200519.164610 submit/trunk/20200519.184310 upstream/0.10.2
authorbiao716.wang <biao716.wang@samsung.com>
Tue, 7 Apr 2020 12:55:30 +0000 (21:55 +0900)
committerbiao716.wang <biao716.wang@samsung.com>
Tue, 7 Apr 2020 12:55:30 +0000 (21:55 +0900)
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
src/python/__init__.py

index e71394a..b493e2a 100644 (file)
@@ -4,6 +4,7 @@
 import sys, os, site
 sys.path.append(os.path.join(site.getsitepackages()[0], 'createrepo_c/'))
 sys.path.append('/usr/lib/pyshared/python2.7/createrepo_c')
+sys.path.append('/usr/lib/python2.7/dist-packages/createrepo_c/')
 #_createrepo_c is a so lib that belong to createrepo_c, it will be OK to import using the above statement at runtime.
 import _createrepo_c  #pylint: disable=import-error
 from _createrepo_c import * #pylint: disable=import-error