> so when I run my script from the command line, the folder does seem
> to be added to Python's importable modules search path. When I
> attempt to import my_module I get the error:
>
> ImportError: No module named my_module
Do your module directories have an __init__.py file
in them?
- Jef
On 11/25/07, Kent Johnson <[EMAIL PROTECTED]> wrote:
>
>
>
> Should be sys.path.append(...)
>
> Kent
yes, I'm sorry, in my posting I did have a typographical error, but my code
has the following seemingly correct lines:
sys.path.append(PATH_TO_MODULE)
print "Path added:
[EMAIL PROTECTED] wrote:
> Dear fellow Python enthusiasts,
>
> I trust your Thanksgiving holiday has been a relaxing one. A quick
> question for you: I have a script that attempts to import my_module from
> a folder that is not in Python's importable modules search path. In my
> script, that
Caching for speed is a concept brand new to me, and there's a remarkable
example in a thread on the python-list. I thought some readers of this
list might find it instructive. However, to run the scripts you'll need
mpmath.
<
http://code.google.com/p/mpmath/>
Begin by jumping in toward the end of
Dear fellow Python enthusiasts,
I trust your Thanksgiving holiday has been a relaxing one. A quick question
for you: I have a script that attempts to import my_module from a folder
that is not in Python's importable modules search path. In my script, that
I run from the command line, I have the
On 11/25/07, elis aeris <[EMAIL PROTECTED]> wrote:
> I need to keep a bit of python code ready to run at anytime, in the ram, but
> this is what I need to do
You have several options. You can use sockets to talk to a local
program that has opened a server port. You can batch out commands to a
file
> elis aeris wrote:
> > I need to keep a bit of python code ready to run at anytime, in the ram,
> > but this is what I need to do
> >
> > I am using two languages at the same time, because python doesn't really
> > have any effective way of simulating keyboard and mouse events,
> >
>
> Check Py
"Christina Margaret Berens" <[EMAIL PROTECTED]> wrote
> or gold on the board, I have to change one of the spaces to a '+',
> but
> when I do it, it changes all the elements in that position in each
> list.
This is a classic sign that you have 5reated your nested list
by using the same list inst
"Ricardo Aráoz" <[EMAIL PROTECTED]> wrote
>
> Check PyWinAuto, it might provide what you need.
> You can find it at : http://www.openqa.org/pywinauto/
>
Nice link thanks, I've not seen that before.
Using ctypes/winall and PostMessage is not friendly.
Alan G.
"elis aeris" <[EMAIL PROTECTED]> wrote
> ok, i can import them.
>
> how do I use them though?
When you import the module the code is executed.
If you have executable code rather than function or
class definitions then it will be executed (print
statements etc). Thats why its always good pra
"elis aeris" <[EMAIL PROTECTED]> wrote
>I need to keep a bit of python code ready to run at anytime, in the
>ram, but
> this is what I need to do
>
> I am using two languages at the same time, because python doesn't
> really
> have any effective way of simulating keyboard and mouse events,
This
http://cdnll.i.imagechef.com/ic/templimg2/Shaved%20Head.jpg
Do u know how to make such images using PIL
or other tools in python
thanks a lot for your kind help
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Christina Margaret Berens wrote:
> I am supposed to make a very simple gameboard where a person is to
> find the gold by moving up, down, left, or right. I have most of the
> math worked out and am trying to place the person on the game board.
> We were to make a list of lists for the board, b
On 26/11/2007, Christina Margaret Berens <[EMAIL PROTECTED]> wrote:
> I am supposed to make a very simple gameboard where a person is to
> find the gold by moving up, down, left, or right. I have most of the
> math worked out and am trying to place the person on the game board.
> We were to make a
I am supposed to make a very simple gameboard where a person is to
find the gold by moving up, down, left, or right. I have most of the
math worked out and am trying to place the person on the game board.
We were to make a list of lists for the board, but to place the person
or gold on the bo
elis aeris wrote:
> I need to keep a bit of python code ready to run at anytime, in the ram,
> but this is what I need to do
>
> I am using two languages at the same time, because python doesn't really
> have any effective way of simulating keyboard and mouse events,
>
Check PyWinAuto, it might
> I need to keep a bit of python code ready to run at anytime, in the
> ram, but this is what I need to do
>
> I am using two languages at the same time, because python doesn't
> really have any effective way of simulating keyboard and mouse events,
Well, not the language itself, but there may
any specific leads?
any ready code would rock
thankyou for responding
On Nov 26, 2007 2:41 AM, bob gailer <[EMAIL PROTECTED]> wrote:
> elis aeris wrote:
> > I need to keep a bit of python code ready to run at anytime, in the
> > ram, but this is what I need to do
> >
> > I am using two languages
thanks for the reply
On Nov 26, 2007 2:38 AM, Evert Rol <[EMAIL PROTECTED]> wrote:
> > I need to keep a bit of python code ready to run at anytime, in the
> > ram, but this is what I need to do
> >
> > I am using two languages at the same time, because python doesn't
> > really have any effective
elis aeris wrote:
> I need to keep a bit of python code ready to run at anytime, in the
> ram, but this is what I need to do
>
> I am using two languages at the same time, because python doesn't
> really have any effective way of simulating keyboard and mouse events,
>
> so I need to run auto it
I need to keep a bit of python code ready to run at anytime, in the ram, but
this is what I need to do
I am using two languages at the same time, because python doesn't really
have any effective way of simulating keyboard and mouse events,
so I need to run auto it 3, and then call my python code
> ok, i can import them.
>
> how do I use them though?
That's also in the tutorial; if there are variables (constants)
instead of functions in your module, it works just the same.
> > I have some .py files that have things I need to use, sometimes
> > it's the functions and sometimes it's the
> I have some .py files that have things I need to use, sometimes
> it's the functions and sometimes it's the whole .py (they have no
> functions)
>
> how do I use them in my other .py codes?
Import them at the top of your other .py file(s):
import
(without the .py extension).
If they're i
ok, i can import them.
how do I use them though?
On Nov 26, 2007 1:42 AM, Evert Rol <[EMAIL PROTECTED]> wrote:
> > I have some .py files that have things I need to use, sometimes
> > it's the functions and sometimes it's the whole .py (they have no
> > functions)
> >
> > how do I use them
I have some .py files that have things I need to use, sometimes it's the
functions and sometimes it's the whole .py (they have no functions)
how do I use them in my other .py codes?
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman
I'm trying to get the left part of a window to look like this:
http://img.photobucket.com/albums/v228/gaypig123ABC/PB240055.jpg
I tried using sticky's, but nothing seems to work correctly.
This is my attempt, without the sticky's..
self.lt_lbl = Label(frame, text="Left label")
s
I can't see anything obvious.
Try putting some debug messages into read_config
and the main loop.
Also you could try catching the SystemExit exception at
the top level and dumping a stacktrace to see exactly
where it is exiting.
HTH,
Alan G.
"dave selby" <[EMAIL PROTECTED]> wrote in message
27 matches
Mail list logo