diff options
Diffstat (limited to 'bin/glsa-check')
-rwxr-xr-x | bin/glsa-check | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/glsa-check b/bin/glsa-check index 972679a80..94dea7398 100755 --- a/bin/glsa-check +++ b/bin/glsa-check @@ -8,8 +8,8 @@ import sys import codecs from os import path as osp -pym_path = osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym") -sys.path.insert(0, pym_path) +if osp.isfile(osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), ".portage_not_installed")): + sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym")) import portage portage._internal_caller = True from portage import os |