A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-April/014383.html below:

[Python-Dev] pydoc script

[Python-Dev] pydoc script [Python-Dev] pydoc scriptPaul F. Dubois paul@pfdubois.com
Fri, 20 Apr 2001 11:09:20 -0700
Ka-Ping,
Your pydoc script can fail because the pydoc executed is not the pydoc (and
therefore the python) in the users' current path if they start it explicitly
with a full path. I suggest a similar trick to this one:

#!/bin/csh -f
unsetenv PYTHONHOME
set bindir = `dirname $0`
set path=(${bindir} $path);rehash #in case of respawns, get our python
exec ${bindir}/python -O -c 'import browser;browser.tk_cdat.main()'





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4