Last modified: 2013-12-20 19:07:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T59494, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57494 - #!/usr/bin/python path is hardcoded (linuxism)
#!/usr/bin/python path is hardcoded (linuxism)
Status: RESOLVED FIXED
Product: Analytics
Classification: Unclassified
Wikimetrics (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Dereckson
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-24 00:35 UTC by Dereckson
Modified: 2013-12-20 19:07 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dereckson 2013-11-24 00:35:57 UTC
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).
Comment 1 Gerrit Notification Bot 2013-11-24 00:36:29 UTC
Change 97353 had a related patch set uploaded by Dereckson:
Make wikimetrics less Linux-centric, more UNIX-agnostic

https://gerrit.wikimedia.org/r/97353
Comment 2 Gerrit Notification Bot 2013-11-24 14:24:15 UTC
Change 97353 merged by Milimetric:
Make wikimetrics less Linux-centric, more UNIX-agnostic

https://gerrit.wikimedia.org/r/97353
Comment 3 Toby Negrin 2013-12-19 01:24:49 UTC
Can we close this?

-Toby
Comment 4 Toby Negrin 2013-12-20 19:07:20 UTC
Thanks for the patch!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links