OpenWaterAnalytics / epanet-python

python wrapper for epanet library
76 stars 40 forks source link

Ran Through 2to3 #3

Closed dly9000 closed 8 years ago

dly9000 commented 8 years ago

cleaned up what else didnt work dll needs to be in same folder as .py files

mauriziocingi commented 8 years ago

In this way we have two distinct modules:

I think it's a better way to maintain a unique module working with both 2.x and 3.x Python 2.7 is still in use by many programs (Grass Gis and Qgis as example) and, in this module, we don't need specific 3.x features.

So I've slightly modified codes and now it works with both py's (al least in Linux environment, not yet tested in Windows...)

At the end I've dropped ctypegen interface (handcraft interface is more simple and easily adaptable to 2.x/3.x without 2to3 )