Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
Minor fix
  • Loading branch information
maldevel committed Dec 21, 2015
1 parent cdce3df commit 0482968
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ip2geolocation.py
Expand Up @@ -241,11 +241,13 @@ def printError(message):
if args.g:
if type(IpGeoLocObj.Longtitude) == float and type(IpGeoLocObj.Latitude) == float:

printInfo('Opening Geolocation in browser..'.format(args.csv))

if _platform == 'cygwin':
printInfo('Opening Geolocation in browser..'.format(args.csv))
call(['cygstart', IpGeoLocObj.GoogleMapsLink])

elif _platform == 'win32' or _platform == 'linux' or _platform == 'linux2':
printInfo('Opening Geolocation in browser..'.format(args.csv))
webbrowser.open(IpGeoLocObj.GoogleMapsLink)

else:
printError('-g option is not available on your platform.')

0 comments on commit 0482968

Please sign in to comment.