It isn't possible to use the ${PYTHON} macro in a command-line notifier 
definition, but it's worth considering.

If you don't want to use a wrapper batch file/shell script, there is at least 
one other possility:

For Windows, it should be possible to set up an association between files with 
the .py extension and InterMapper's included python, which would be named 
"C:\Program Files\InterMapper\DWF\core\python\imdc".

For Unix, it should be possible to use the #! convention in the first line of a 
.py file to indicate it should run with "/usr/local/imdc/core/python/bin/imdc 
-OO".

-- Christopher


ww9rivers wrote:
> I wrote a notifier in python and then found out that InterMapper has a python 
> 2.6 installed inside it.
> 
> I looked in the Developer Guide, it seems that it is possible to use the 
> installed python package to run probes as plug-ins. Is there a way to use it 
> for command-line notifiers? I guess I may be able to do that with a wrapper 
> batch command (my server is Windows 2008) that runs the python interpretor 
> with a full path. But that is a bit ugly. Is it possible to get the ${PYTHON} 
> variable in the command file?
> 
> Thanks for your insights.



-------------------- m2f --------------------

Read this topic online here:
http://forums.dartware.com/viewtopic.php?p=3654#3654





____________________________________________________________________
List archives: 
http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [email protected]

Reply via email to