kercos / geomodel

Automatically exported from code.google.com/p/geomodel
0 stars 0 forks source link

importing help #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm a noob to appengine so I am somewhat confused as to how to import this 
module to get 
geo.GeoModel to work in my model.

Original issue reported on code.google.com by keega...@gmail.com on 4 Jul 2009 at 12:47

GoogleCodeExporter commented 8 years ago
sorry didn't mean to log this as a defect

Original comment by keega...@gmail.com on 4 Jul 2009 at 1:41

GoogleCodeExporter commented 8 years ago
Hi,

Take a look at this HowTo: http://code.google.com/p/geomodel/wiki/Usage

To import, simply:

import geo

You'll need the geo/ directory in the root of your project directory or 
somewhere in
the PYTHONPATH.

For more questions, try asking in the App Engine Help forum, framing your 
question as
something general, like 'importing third party code into my App Engine project'.

I'm also working to publish a sample application using GeoModel sometime soon;
hopefully that will help as well.

Thanks,
Roman

Original comment by api.roman.public@gmail.com on 6 Jul 2009 at 11:08

GoogleCodeExporter commented 8 years ago
Thanks for the help! I got it working with the help of some source code I found 
that used it.

I had to import like this:
from geo.geomodel import GeoModel
from geo import geotypes

Original comment by keega...@gmail.com on 7 Jul 2009 at 4:17