summaryrefslogtreecommitdiffstats
path: root/__root__
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2015-01-13 13:20:26 +0100
committerJan Pokorný <jpokorny@redhat.com>2015-01-14 09:14:51 +0100
commit381ccf813a49e9c07f48a0bfdc5134b3c0e9a26f (patch)
tree72b02381cbc52b7e8f9e1ae95b023d5bcd8febc6 /__root__
parent8a628d292be65741733fb938844207452af0f237 (diff)
downloadclufter-381ccf813a49e9c07f48a0bfdc5134b3c0e9a26f.tar.gz
clufter-381ccf813a49e9c07f48a0bfdc5134b3c0e9a26f.tar.xz
clufter-381ccf813a49e9c07f48a0bfdc5134b3c0e9a26f.zip
run-dev: fix redundant (but harmless) basename application
(harmless since basename function is idempotent) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to '__root__')
-rwxr-xr-x__root__/run-dev2
1 files changed, 1 insertions, 1 deletions
diff --git a/__root__/run-dev b/__root__/run-dev
index 01e693e..a5c23d4 100755
--- a/__root__/run-dev
+++ b/__root__/run-dev
@@ -53,7 +53,7 @@ while True:
backup_mod = None
if not environ.get('PREFERSYS', 0):
backup_mod = sys.modules.pop(maybe_root_real)
- pkg = __import__(basename(maybe_root_real), globals=pkg, level=-1)
+ pkg = __import__(maybe_root_real, globals=pkg)
break
except ImportError:
sys.path.pop(0)