From 678212bea2f94379cc34fa67549d30d8b4c24511 Mon Sep 17 00:00:00 2001 From: Alexander Vasarab Date: Mon, 1 Feb 2021 22:13:52 -0800 Subject: [PATCH] Fix a Pylint import-outside-toplevel warning --- infoex-autowx.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/infoex-autowx.py b/infoex-autowx.py index a68d778..c2d20f7 100755 --- a/infoex-autowx.py +++ b/infoex-autowx.py @@ -29,6 +29,7 @@ import logging import os import sys import time +import importlib.util from ftplib import FTP from argparse import ArgumentParser @@ -228,8 +229,6 @@ def main(): station) elif station['provider'] == 'python': try: - import importlib.util - spec = importlib.util.spec_from_file_location('custom_wx', station['path']) mod = importlib.util.module_from_spec(spec) -- 2.30.2