Page MenuHomePhabricator

#!/usr/bin/python path is hardcoded (linuxism)
Closed, ResolvedPublic

Description

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).

Version: unspecified
Severity: normal

Details

Reference
bz57494

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:40 AM
bzimport set Reference to bz57494.

Change 97353 had a related patch set uploaded by Dereckson:
Make wikimetrics less Linux-centric, more UNIX-agnostic

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

Change 97353 merged by Milimetric:
Make wikimetrics less Linux-centric, more UNIX-agnostic

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