I am back at it with Python and have run into a little stupid hurdle. My goal is to simply search for the GeoIP.dat database and add the path to a couple of variables. So for example:
geopath=os.system('find /usr/share -iname GeoIP.dat')
geobase = pygeoip.GeoIP(geopath, pygeoip.MEMORY_CACHE)
which will load the GeoIP database so I can begin adding addition logic to my script. The issue I am having is when I simply execute using ipython:
geopath=os.system('find /usr/share -iname GeoIP.dat')
geopath
Out[15]: 0
it returns "0" in which I assume mean successful. So my stupid question is how do I see what was returned? Why doesnt it return the results instead of a "0"?