[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libredwg] Testsuite
From: |
Mike Dupont |
Subject: |
Re: [libredwg] Testsuite |
Date: |
Mon, 9 Feb 2015 06:00:04 -0600 |
On Sun, Feb 8, 2015 at 4:40 AM, guruprasad rane
<address@hidden> wrote:
> I tried to run the check.py it gave errors
>
> Traceback (most recent call last):
> File "./check.py", line 17, in <module>
> generatexml(path_to_dwg)
> File "/home/bcadmin/libredwg/testsuite/xmlsuite/helper.py", line 33, in
> generatexml
> os.system (me + " ./txttoxml.py " + filename)
> TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
>
if you look at the code :
# This beats 'sys.argv[0]', which is not guaranteed to be set.
me = os.getenv ("PYTHON")
current_dir = os.getcwd()
os.chdir(dwgdir)
for filename in glob.glob ("*/*.txt"):
os.system (me + " ./txttoxml.py " + filename)
you will see it is looking for the environment variable PYTHON
this is not set by default.
use :
export PYTHON=`which python`
or
export PYTHON=/usr/bin/python
mike