Re: [gdal-dev] hardcoded paths in the testsuite

2018-04-18 Thread Even Rouault
Ben, > > I noticed that the testsuite does things like this: > > sys.path.append('../pymod') > and: > sys.path.append('../gcore') > > Using hard-coded relative paths makes things fragile. It means you must > be in the specific test directory for the tests to run -- it can't be > run from anywhe

[gdal-dev] hardcoded paths in the testsuite

2018-04-18 Thread Ben Elliston
Hi Even I noticed that the testsuite does things like this: sys.path.append('../pymod') and: sys.path.append('../gcore') Using hard-coded relative paths makes things fragile. It means you must be in the specific test directory for the tests to run -- it can't be run from anywhere. I think it wo