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

Python Activestate 2.6.1
Windows XP Professional SP3


_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to