geopython / mapslicer

MapSlicer is a graphical application for online map publishing.
https://wiki.osgeo.org/wiki/MapSlicer
Other
43 stars 15 forks source link

Create new Debian package under new name #4

Open kalxas opened 9 years ago

kalxas commented 9 years ago

@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

johanvdw commented 9 years ago

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

johanvdw commented 9 years ago

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.

kalxas commented 9 years ago

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

johanvdw commented 9 years ago

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 notifications@github.com 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.

answerquest commented 5 years ago

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")))