Saturday, 11 February 2017

Difference between python IDLE and eclipse on accessing GRASS?



I have seen these posts:GRASS and Python, Using Eclipse to develop GRASS Python programs.


I used to use python IDLE to control GRASS, but I can't make python and GRASS connected, as I described in this post:Problem with python script to control GRASS GIS from outside - How to import grass.script under Win 8.1?



So now I am thinking of using eclipse to control GRASS, trying to avoid problems I faced as I used python IDLE. But I don't know whether I will get the same problem after I use eclipse, and I can't tell the difference between using python IDLE alone and using eclipse.


I am working with GRASS 6.4.3 and python 2.7.6 under WIN 8.1.


Can you help me to make decision and furthermore, to solve the connecting problem?



Answer



There should not be a difference in GRASS and Python working together using either IDLE or Eclipse. You have to connect your Python installation to your GRASS. I think the easiest option is using a .pth file (check out my answer to your other post at Problem with python script to control GRASS GIS from outside - How to import grass.script under Win 8.1?)


I am using Pyscripter for writing Python scripts and I am pretty happy with it.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...