The message means that no one has defined a meaning for the name "DOpus" to Python.
You, as a programmer, must define that name. If you say: >>>DOpus = "Spam and Eggs" then you have defined it as a character string which contains three English words. If you say: >>>from win32com.client import Dispatch >>>DOpus = Dispatch("Wscript.Network") then you will have defined it as a Windows COM dispatch object which will do things (but not the things _you_ are interested in). You must discover which tool and what name to use to get Directory Opus 11. After you have defined it correctly, then you can use it. You might find the information in chapter 21<http://www.icodeguru.com/WebServer/Python-Programming-on-Win32/ch21.htm> helpful. On Tue, Apr 15, 2014 at 11:17 AM, Łukasz Jakubowski <luka...@onet.pl> wrote: > > Hello, > > I have a problem with a file manager called Directory Opus 11. It supports > ActiveScripting languages, but in case of python, its global objects are > not visible in global namespace. > Python packages (python-3.4.0, pywin32-218.win32-py3.4) seem to be > installed correctly (fe. WScript object is visible in .pys scripts), and > ActiveScripting engine is actually called by Directory Opus. > Where should I start debugging? Are there some possible flags not set or > attributes not presented by the Directory Opus objects that could be > checked? Any namespaces to be searched? > > The exact error message is as follows: > DOpus.OpenOutputWindow() > ^ > Traceback (most recent call last): > File "<Script Block >", line 6, in <module> > DOpus.OpenOutputWindow() > NameError: name 'DOpus' is not defined > (0x80020009) > > TIA & Regards, > Łukasz > _______________________________________________ > python-win32 mailing list > python-win32@python.org > https://mail.python.org/mailman/listinfo/python-win32 >
_______________________________________________ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32