mapslicer
mapslicer copied to clipboard
Create new Debian package under new name
@johanvdw the previous debian package had the following installed: /usr/lib/maptiler/ /usr/share/doc/maptiler/ /usr/share/maptiler/icon.png /usr/share/applications/maptiler.desktop and a link: /usr/bin/maptiler -> /usr/lib/maptiler/maptiler.py
I actually started working on this: https://github.com/johanvdw/mapslicer There are two branches: master and debian. The idea is that master contains all changes which should be merged and debian contains the packaging itself.
So far it does not work well - so I have not made a public announcement. If anyone with more python/setuptools knowledge wants to have a look: go ahead!
Johan
For the record: it does install, the package can be imported, but for some reason the mapslicer script itself fails. Strangely it does run when I use execfile("/usr/bin/mapslicer.py") from python but not when run from the commandline.
Temporary solution added through fpm to have something for the OSGeoLive 8.5 release. This gives us time to do a proper packaging for OSGeoLive 9.0
Thanks,
I have a lot of other work this week - happy you found a quick solution.
Johan
On Mon, Feb 16, 2015 at 9:43 PM, Angelos Tzotsos [email protected] wrote:
Temporary solution added through fpm to have something for the OSGeoLive 8.5 release. This gives us time to do a proper packaging for OSGeoLive 9.0
— Reply to this email directly or view it on GitHub https://github.com/geopython/mapslicer/issues/4#issuecomment-74569645.
I'm suspecting that if you execute the program from a location other than its own folder, then it will fail to load the other resources. Here's what I do to ensure programs run proper from wherever they're executed:
root = os.path.dirname(__file__)
# then, all other files and folders have the root prefixed
routesFolder = os.path.join(root,'routes')
configRules = json.load(open(os.path.join(root,"config.json")))