GDL in Python has no !PATH

  • Anonymous - 2011-03-04


    I have compiled my own for use with python and it works quite well, but it can't find any *.pro-files in the path because !PATH is empty. How can I have it set correctly? (linux, fc12)


  • Sylwester Arabas


    It's quite probable that you're the only one having a working Numpy-enabled now :)
    Perhaps, setting the !PATH in a script and executing it via GDL.script("") could work? (that's just a guess).
    Could you post here the list of changes/a patch that is needed to get it working, and a set of examples?


  • amicitas

    amicitas - 2011-03-24

    I am having the same problem.  The !PATH variable is empty.

    I have Numpy-enabled working, kind of . . . . well not really the cannonical SIN function works, but any compiled routines lead to a segmentation fault.

    (on OS X 10.6.6 with a macports installation of Python 2.7).

  • Ronny Gerasch

    Ronny Gerasch - 2012-06-08

    If you're still looking for a solution:
    I have a working python - GDL - bridge on Kubuntu 12.04 using GDL 0.9.2
    Indeed you need to run a GDL startup script first:
    your startupfile should look like this:
    !PATH=!PATH + ':/path/to/your/pro/files/'

    You can then call any of your own gdl procedures


Log in to post a comment.