[LDTP-Dev] setappmap is not working (NameError: name 'setappmap' is not defined()

Mauricio Lin mauriciolin at gmail.com
Fri Oct 28 14:10:54 PDT 2005


Hi all,

I was trying to use the setappmap function but it is not being found.

This problem happens for 0.2.0 and 0.2.1 versions.

***************************************************************
from ldtp import *
from ldtputils import *
import sys, string, os

...
initappmap('%s/gpdf_2.map' % os.getcwd())

... more code here

setappmap('%s/gpdf_3.map' % os.getcwd())

***************************************************************

Look the error.

Traceback (most recent call last):
File "./gpdf_3.py", line 38, in ?
setappmap('%s/gpdf_3.map' % os.getcwd())
NameError: name 'setappmap' is not defined

The setappmap function is presented at API reference (
http://gnomebangalore.org/ldtp/index.php/API_Reference)

Any idea?

BR,

Mauricio Lin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/ldtp-dev/attachments/20051028/baa07751/attachment.htm


More information about the Ldtp-dev mailing list