Internet Explorer, COM+, Javascript and Python

2005-04-27 Thread Ishpeck
I need to make IE execute javascript in a web page with COM+ and
Python.

Similarly to the way they do it in this article. . .

http://www.codeproject.com/com/jscalls.asp

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


Re: Which IDE is recommended?

2005-04-27 Thread Ishpeck

monkey wrote:
> Read through python site for programming tool, really plenty of
choices :-)
> (For c++, I just can't breath with very very limited choices)
>
> Tried Spe, it come with wxGlade built-in very nice(is Spe still
actively
> develop?). But seem that Boa Constructor and PyDev(the plug-in for
Eclipse)
> also worth looking. Actually which one are you guys using? and why? I
think
> it is also valuable for those who are new to python as me.

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


Re: Which IDE is recommended?

2005-04-27 Thread Ishpeck
Sorry about the empty post.

I'm a fan of PSPad.  It's free, light weight, and works with
everything.

http://www.pspad.com/

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


Running Python scripts from BASH

2007-02-27 Thread Ishpeck
I'm using Python to automate testing software for my company.   I
wanted the computers in my testing lab to automatically fetch the
latest version of the python scripts from a CVS repository and then
ask a local database server which of the scripts to run.

I built the following:

#!/bin/bash
# Batcher will run the specified scripts.

cvs update

while true
do
   # This part makes sure that
   # every hour or so, we get the latest
   # snapshot of the suite from CVS.
   if [ $(date +%M) = 0 ]; then
  cvs update
  sleep 360
   fi
   # Then we grab the name of
   # a randomly-selected script
   i=$(python randomRun.py)
   # If the return-value of randomRun.py
   #is empty, we don't run it.
   if ["$i"=""]; then
  echo Not running anything
  sleep 3600
   # If randomRun doesn't return
   # empty, we run the script that it prints.
   else
  python "$i";
  sleep 2
   fi
done


- END BASH FILE 

For debugging purposes, you can just build "randomRun.py" to do the
following:

print "randomRun.py"

It's silly but works.

Whenever I run this script, Python decides that it doesn't like the
way BASH feeds it the name of the script.  I get the following
message:

': [Errno 22] Invalid argumentopen file 'foo.py

I dunno.  Maybe this is a better question for a BASH-related group.
How do I get around this?

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


Re: Running Python scripts from BASH

2007-02-27 Thread Ishpeck
It may be worth noting that I'm running Cygwin on WindowsXP
professional.

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