Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new Debian package under new name #4

Open
kalxas opened this issue Feb 14, 2015 · 6 comments
Open

Create new Debian package under new name #4

kalxas opened this issue Feb 14, 2015 · 6 comments
Assignees

Comments

@kalxas
Copy link
Member

kalxas commented Feb 14, 2015

No description provided.

@kalxas
Copy link
Member Author

kalxas commented Feb 15, 2015

@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
Copy link
Member

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
Copy link
Member

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
Copy link
Member Author

kalxas commented Feb 16, 2015

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
Copy link
Member

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
#4 (comment).

@answerquest
Copy link

answerquest commented Jul 11, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants