Merge pull request #69 from Artanicus/city-location
Update wego compatibility (city to location)
This commit is contained in:
commit
c037c3a131
1 changed files with 1 additions and 2 deletions
|
|
@ -128,8 +128,7 @@ def save_weather_data( location, filename ):
|
||||||
location = DEFAULT_LOCATION
|
location = DEFAULT_LOCATION
|
||||||
else:
|
else:
|
||||||
location_not_found = False
|
location_not_found = False
|
||||||
|
p = Popen( [ WEGO, '-location=%s' % location ], stdout=PIPE, stderr=PIPE )
|
||||||
p = Popen( [ WEGO, '--city=%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…
Add table
Reference in a new issue