wylark
/
infoex-autowx.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6ec08d
)
Fix a Pylint import-outside-toplevel warning
author
Alexander Vasarab <alexander@wylark.com>
Tue, 2 Feb 2021 06:13:52 +0000
(22:13 -0800)
committer
Alexander Vasarab <alexander@wylark.com>
Tue, 2 Feb 2021 06:13:52 +0000
(22:13 -0800)
infoex-autowx.py
patch
|
blob
|
history
diff --git
a/infoex-autowx.py
b/infoex-autowx.py
index a68d778225fa22bfe10ef5a1cc6f96d4c0cbd370..c2d20f7ab650680807ad4fe6d1adfa48ae4ab1f7 100755
(executable)
--- 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)