[LDTP-Dev] [Bug 597382] New: running examples/gedit.py fails with NameError

LDTP (bugzilla.gnome.org) bugzilla at gnome.org
Sun Oct 4 23:50:14 PDT 2009


https://bugzilla.gnome.org/show_bug.cgi?id=597382
  LDTP | ldtp2 | unspecified

           Summary: running examples/gedit.py fails with NameError
    Classification: Other
           Product: LDTP
           Version: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ldtp2
        AssignedTo: ldtp-dev at lists.freedesktop.org
        ReportedBy: thekorn at gmx.de
         QAContact: ldtp-dev at lists.freedesktop.org
      GNOME target: ---
     GNOME version: ---


Using the gedit example from the latest checkout of ldtpv2 I get:

markus at thekorn ~/devel/ldtp2 % PYTHONPATH="." python examples/gedit.py
Traceback (most recent call last):
  File "examples/gedit.py", line 28, in <module>
    ldtp.imagecapture('*gedit', '/tmp/foo.png')
  File "/home/markus/devel/ldtp2/ldtp/__init__.py", line 53, in imagecapture
    outFile = os.path.expanduser(outFile)
NameError: global name 'os' is not defined

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the LDTP-dev mailing list