wego doesn't have a city flag anymore, it's location now

pull/69/head
Artanicus 8 years ago
parent 89b6f82e77
commit 2bed3a84c8

@ -128,8 +128,8 @@ def save_weather_data( location, filename ):
location = DEFAULT_LOCATION location = DEFAULT_LOCATION
else: else:
location_not_found = False location_not_found = False
print(location)
p = Popen( [ WEGO, '--city=%s' % location ], stdout=PIPE, stderr=PIPE ) p = Popen( [ WEGO, '-location=%s' % location ], stdout=PIPE, stderr=PIPE )
stdout, stderr = p.communicate() stdout, stderr = p.communicate()
if p.returncode != 0: if p.returncode != 0:
error( stdout + stderr ) error( stdout + stderr )

Loading…
Cancel
Save