generated from mwc/lab_weather
Update relative imports
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#
|
||||
# It's your job to implement this function.
|
||||
|
||||
from weather_apis import (
|
||||
from weather.weather_apis import (
|
||||
geocode_location,
|
||||
estimate_location,
|
||||
get_weather_office,
|
||||
@@ -37,4 +37,4 @@ def print_weather(location=None, metric=False, verbose=False):
|
||||
print(forecast["name"],"temperature of", forecast["temperature"], "wind speed of", forecast["wind_speed"], "out of the ", forecast["wind_direction"],"conditions of", forecast["description"]) # YOUR CODE HERE!
|
||||
print()
|
||||
|
||||
print_weather()
|
||||
print_weather()
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
# You don't need to do anything with thie file.
|
||||
|
||||
from argparse import ArgumentParser
|
||||
from weather import print_weather
|
||||
from weather.weather import print_weather
|
||||
|
||||
def weather_cli():
|
||||
"""Provides a command-line interface for weather.
|
||||
|
||||
Reference in New Issue
Block a user