On Sep 25, 10:41*am, js <ebgs...@gmail.comwrote:
Hi list,
Is it possible to change module search path (PYTHONPATH) built-in to
Python interpreter?
I thought I can change it with configure --libdir but it didn't work for me.
I also tried patching around python source tree replacing lib to lib64
but it didn't work either.
Adjusting sys.path directly or using environ should do the trick but
I'd rather want to make it the default path for my python
Thanks,
Why not just add a custom path file (*.pth)? EasyInstall, wx, PyWin32
and others do it. Of course there's always sys.path.append as well.
Mike 2 1704
For 64bit python, there's no need to look at lib/lib-dynload because
libraries for 64bit should be in
lib64/lib-dynload. Having module search path which point to libraries
the python can not understand
is, IMHO, wrong.
On Fri, Sep 26, 2008 at 3:03 AM, Mike Driscoll <ky******@gmail.comwrote:
On Sep 25, 10:41 am, js <ebgs...@gmail.comwrote:
>Hi list,
Is it possible to change module search path (PYTHONPATH) built-in to Python interpreter? I thought I can change it with configure --libdir but it didn't work for me. I also tried patching around python source tree replacing lib to lib64 but it didn't work either.
Adjusting sys.path directly or using environ should do the trick but I'd rather want to make it the default path for my python
Thanks,
Why not just add a custom path file (*.pth)? EasyInstall, wx, PyWin32
and others do it. Of course there's always sys.path.append as well.
Mike
-- http://mail.python.org/mailman/listinfo/python-list
In addition to that, .pth cannot prepend search path.
All thing it can do is appending to it.
In my case, I have to put lib64 before lib/.
On 9/26/08, js <eb*****@gmail.comwrote:
For 64bit python, there's no need to look at lib/lib-dynload because
libraries for 64bit should be in
lib64/lib-dynload. Having module search path which point to libraries
the python can not understand
is, IMHO, wrong.
On Fri, Sep 26, 2008 at 3:03 AM, Mike Driscoll <ky******@gmail.comwrote:
>On Sep 25, 10:41 am, js <ebgs...@gmail.comwrote:
>>Hi list,
Is it possible to change module search path (PYTHONPATH) built-in to Python interpreter? I thought I can change it with configure --libdir but it didn't work for me. I also tried patching around python source tree replacing lib to lib64 but it didn't work either.
Adjusting sys.path directly or using environ should do the trick but I'd rather want to make it the default path for my python
Thanks,
Why not just add a custom path file (*.pth)? EasyInstall, wx, PyWin32 and others do it. Of course there's always sys.path.append as well.
Mike -- http://mail.python.org/mailman/listinfo/python-list This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Michael Hoffman |
last post by:
Many of you are familiar with Jason Orendorff's path module
<http://www.jorendorff.com/articles/python/path/>, which is frequently
recommended here on c.l.p. I submitted an RFE to add it to the...
|
by: nejucomo |
last post by:
Hi folks,
Quick Synopsis:
A test script demonstrates a memory leak when I use pythonic extensions
of my builtin types, but if I use the builtin types themselves there is
no memory leak.
...
|
by: Tekkaman |
last post by:
I'm getting a strange behaviour from the "pathname" and "lineno"
formatter mapping keys. Instead of my file and my line number I get:
/usr/lib/python2.4/logging/__init__.py
as the file, and...
|
by: Russ |
last post by:
When I run setup.py to install a pure python package, is it supposed
to
automatically set my search path to find the installed modules? Or am
I
supposed to set my PYTHONPATH variable myself in my...
|
by: Joshua J. Kugler |
last post by:
So, I have:
ModTest
__init__.py
AModule.py
BModule.py
CModule.py
All works fine. However, when I import ModTest, I would like it to discover
and store the names of the modules beneath it,...
|
by: rjcarr |
last post by:
Sorry if this is a completely newbie question ...
I was trying to get information about the logging.handlers module, so
I imported logging, and tried dir(logging.handlers), but got:
...
|
by: koara |
last post by:
Hello, is there a way to access a module that is hidden because
another module (of the same name) is found first?
More specifically, i have my own logging.py module, and inside this
module,...
|
by: tow |
last post by:
I have a python script (part of a django application, if it makes any
difference) which is exhibiting the following behaviour:
import my_module # succeeds
imp.find_module("my_module") # fails,...
|
by: js |
last post by:
Hi list,
Is it possible to change module search path (PYTHONPATH) built-in to
Python interpreter?
I thought I can change it with configure --libdir but it didn't work for me.
I also tried...
|
by: Rina0 |
last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
|
by: erikbower65 |
last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps:
1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal.
2. Connect to...
|
by: linyimin |
last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
|
by: erikbower65 |
last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA:
1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
|
by: kcodez |
last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
|
by: Rina0 |
last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: lllomh |
last post by:
How does React native implement an English player?
|
by: Mushico |
last post by:
How to calculate date of retirement from date of birth
| |