Re: PyQt4.__file__ gives PyQt4/__init__.py as value

2009-08-15 Thread wgw
On Aug 15, 2:19 pm, Christian Heimes  wrote:
> wgw wrote:
> > I don't understand why the __file__ value in my installation of PyQt
> > would not give a proper, full path.
>
> > I'm guessing that I did not install pyqt properly (I'm on Ubuntu
> > Hardy, trying to install QT4.5), but before redoing the install, I
> > want to see if there is a quicker fix.
>
> Some versions of Debian and Ubuntu used to compile Python files with a
> relative path. Try this:
>
> python2.5 /usr/lib/python2.5/compileall.py -f /usr/lib/python2.5
> python2.5 -o /usr/lib/python2.5/compileall.py -f /usr/lib/python2.5
>
> Christian

python2.5 /usr/lib/python2.5/compileall.py -f /usr/lib/python2.5

didn't change anything, and there is no -o option (-O exists, but
would that be useful?)

thanks!
-- 
http://mail.python.org/mailman/listinfo/python-list


PyQt4.__file__ gives PyQt4/__init__.py as value

2009-08-15 Thread wgw
I don't understand why the __file__ value in my installation of PyQt
would not give a proper, full path.

I'm guessing that I did not install pyqt properly (I'm on Ubuntu
Hardy, trying to install QT4.5), but before redoing the install, I
want to see if there is a quicker fix.

Also, though PyQt4/ is in the site-packages directory, and loads
properly into the interactive environment. Yolk does not list it. ???

Something strange here!

Any suggestions?
-- 
http://mail.python.org/mailman/listinfo/python-list



Re: HTML expect in python

2005-07-16 Thread WGW
Thanks for these replies -- looks like I have all I need; now it is just 
a question of getting my head around the applications and doing some 
testing...

Many thanks for pointers.
-- 
http://mail.python.org/mailman/listinfo/python-list


HTML expect in python

2005-07-15 Thread WGW
I would like to automate some simple browser navigating using python. 
Ideally, I would like a package like pyexpect, but that can handle a 
browser in much the same way as pyexpect handles a terminal (tall 
order!). In short, I want a macro language for a browser (I know about 
the commercial packages such as Easy Bee and Internet macros, but I want 
  more programmability and less cost!)

ClientForms goes in the right direction. Can Grail be scripted (easily)?

What is the best way to run a browser with python? Python would have to 
be able to fill in forms, send them off, click links, and so on. I don't 
really care which browser it is.

Apparently, commandline python scripts can control IE.

Not sure where to find examples

Any suggestions?


(I found the following remark:

A different flavor of client-side Python scripting is that Mark 
Hammond's [ref] hard work has made possible. Internet Explorer (and WSH 
[give ref]) support(s) ActiveScripting [ref] languages, including 
Python. Thus, as Gilles Lenfant enumerated in private correspondence:

 * Command-line Python scripts control IE (but equally well through 
COM [ref]);
 * Client-side scripts interpret Python embedded in HTML as well as 
they do JavaScript [ref];

 * "you can write 'hta' applications with full-featured Python (use 
of IE5 for GUI)"
)
-- 
http://mail.python.org/mailman/listinfo/python-list