Python activeX scripting
by Julio Dilisa other posts by this author
Mar 4 2009 5:13AM messages near this date
view in the new Beta List Site
wxpython
|
Hello,
If I run the code (with wsscript small_pys.pys) given here under, I got
this error
==========================================================
" Windows Script Host" Error
___________________________
Script:...
Line 9
char 0
Error: Traceback...
File "<Script Block> " line 9, in <module>
import Tkinter
File .....
::::::::::::::::::::::::::::::::::::::::::::::::::::::::
import _tkinter
ImportError: DLL load failed. The specified module could not be found
Code: 8002200009
Source: Python ActiveX Scripting Engine
=============================================================
If I run the code the python way : python small_pys.pys, I get no trouble.
What can I do to make my code work with wscript ?
------------------------
small_pys.pys
------------------------
# ________________CODE_________________
import os
import win32api
import win32com
# Uncomment following line to provoque an error
import Tkinter
def mymsg(msg = 'hello world'):
win32api.MessageBox(0,msg)
b = mymsg(os.getcwd())
#________________________________________
Thanks for your help.
Julio DILISA
THALES ALENIA SPACE ETCA s.a.
Business Analyst CAD/CAM
+32 71 44 24 48
|