From 5e3e84b4fc4dc75d520b8e0e894811e3e2c88f56 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Sat, 20 Sep 2014 05:48:23 +0200 Subject: Update sys.path in scripts only when using not installed instance of Portage. Modules of installed instance of Portage are now placed in standard location, which is included in default sys.path. --- bin/clean_locks | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/clean_locks') diff --git a/bin/clean_locks b/bin/clean_locks index 3e969f2c6..13af06197 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 -- cgit v1.2.3-65-gdbad