[mousetrap/gnome3-wip: 203/240] Speed up and make mt-guess-prefix more accurate.
- From: Heidi Ellis <heidiellis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mousetrap/gnome3-wip: 203/240] Speed up and make mt-guess-prefix more accurate.
- Date: Mon, 8 Sep 2014 15:29:38 +0000 (UTC)
commit ed9a9af94e2ee597c5fa2b68a3c6eafa62348776
Author: Stoney Jackson <dr stoney gmail com>
Date: Sat Jun 28 22:56:47 2014 -0400
Speed up and make mt-guess-prefix more accurate.
bin/mt-guess-prefix | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/bin/mt-guess-prefix b/bin/mt-guess-prefix
index b3dd952..d82aecf 100755
--- a/bin/mt-guess-prefix
+++ b/bin/mt-guess-prefix
@@ -1,2 +1,2 @@
#!/usr/bin/env bash
-dirname $(dirname $(find /usr -type f -regex ".*/bin/python2.7" 2> /dev/null | head -1))
+python -c "import site; print '/'.join(site.getsitepackages()[0].split('/')[:2])"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]