mapslicer icon indicating copy to clipboard operation
mapslicer copied to clipboard

Create new Debian package under new name

Open kalxas opened this issue 9 years ago • 6 comments

kalxas avatar Feb 14 '15 00:02 kalxas

@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

kalxas avatar Feb 15 '15 16:02 kalxas

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 avatar Feb 15 '15 18:02 johanvdw

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.

johanvdw avatar Feb 15 '15 19:02 johanvdw

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

kalxas avatar Feb 16 '15 20:02 kalxas

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.

johanvdw avatar Feb 16 '15 21:02 johanvdw

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

answerquest avatar Jul 11 '19 04:07 answerquest