Dereckson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/97353


Change subject: Make wikimetrics less Linux-centric, more UNIX-agnostic
......................................................................

Make wikimetrics less Linux-centric, more UNIX-agnostic

Python could be installed on different place on different OSes.

For example, it's located at /usr/local/bin/python on FreeBSD.

On a Solaris machine, it could be at an arbitrary path, like
/opt/ts/python/<version>/bin/python

The best practice is so to find python in the enviroment prompt,
instead to hardcore a path. We then call /usr/bin/env (which is
a standard executable in every POSIX OS, so always there).

Bug: 57494
Change-Id: Icd86863bcc54f5ce49c3bb07df784a38b3ad0f13
---
M scripts/console_celery.py
M setup.py
M wikimetrics/run.py
3 files changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/analytics/wikimetrics 
refs/changes/53/97353/1

diff --git a/scripts/console_celery.py b/scripts/console_celery.py
index c127425..d856117 100755
--- a/scripts/console_celery.py
+++ b/scripts/console_celery.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 import celery
 from wikimetrics.models import add
 
diff --git a/setup.py b/setup.py
index 945ca9d..fcc7715 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 # follow the frog
 
 from setuptools import setup
diff --git a/wikimetrics/run.py b/wikimetrics/run.py
index bab607f..5044dcb 100644
--- a/wikimetrics/run.py
+++ b/wikimetrics/run.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 import argparse
 import sys
 import logging

-- 
To view, visit https://gerrit.wikimedia.org/r/97353
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icd86863bcc54f5ce49c3bb07df784a38b3ad0f13
Gerrit-PatchSet: 1
Gerrit-Project: analytics/wikimetrics
Gerrit-Branch: master
Gerrit-Owner: Dereckson <dereck...@espace-win.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to