diff options
Diffstat (limited to 'bin/clean_locks')
-rwxr-xr-x | bin/clean_locks | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/clean_locks b/bin/clean_locks index 73213b52b..d44162075 100755 --- a/bin/clean_locks +++ b/bin/clean_locks @@ -6,8 +6,8 @@ from __future__ import print_function import sys, errno 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 |