Kitware / tangelo

A simple, quick, powerful web framework
http:/tangelohub.org/tangelo/
Apache License 2.0
185 stars 35 forks source link

Example material search logic is wrong #471

Closed waxlamp closed 9 years ago

waxlamp commented 9 years ago

The logic for finding the example app pack [0] is wrong. invocation_dir winds up being the location of tangelo.py within the site-packages directory, when really it needs to be a few levels up in order to have uniform access to the share (among others) directory across different OSes and Python deployments.

So far, Arch Linux, OS X, and Nixos (or, an installation of Nix on a non-Nixos system) all place Python components in different places. Fixing this bug may once more make this aspect of Tangelo cross-platform.

[0] https://github.com/Kitware/tangelo/blob/develop/tangelo/tangelo/__main__.py#L229

waxlamp commented 9 years ago

Closed via baff6e25dcafe29b182066451f64b5cb38ca1550