Nikos Alexandris wrote:

I have this script
<https://github.com/NikosAlexandris/i.fusion.hpf.py>. My local
Makefile, with which I am trying to compile currently, is:

  MODULE_TOPDIR = ../..

  PGM = i.fusion.hpf

  ETCFILES = high_pass_filter constants

  include $(MODULE_TOPDIR)/include/Make/Script.make
  include $(MODULE_TOPDIR)/include/Make/Python.make


* Is the order of entries in ETCFILES significant? (high_pass_filter
needs stuff from constants)

* While both files are to be found, after compilation, under
</grass70/dist.x86_64-unknown-linux-gnu/etc/i.fusion.hpf>, the script
runs fine only when executing it from *any*, if I understand
correctly, directory in which the helper file(s)
"high_pass_filter.py(c)" is(are) in.

I can't work this out. Thank you, Nikos

Thanks to "r.in.wms", fixed by using this line:

+sys.path.insert(1, os.path.join(os.path.dirname(sys.path[0]), 'etc', 'r.in.wms'))

Nikos
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to