Skip to content

Commit 196c32d

Browse files
More on rsyncupload.
1 parent 42cc31b commit 196c32d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

bin/user/nws.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838

3939
import weewx
4040
import weewx.units
41-
import weeutil
41+
import weeutil.rsyncupload
42+
import weeutil.logger
4243

43-
from weeutil.rsyncupload import RsyncUpload
4444
from weeutil.weeutil import timestamp_to_string
4545
from weeutil.weeutil import to_bool
4646
from weeutil.weeutil import to_float
@@ -496,7 +496,7 @@ def rsync_forecast(local_file: str, remote_file: str, remote_host: str,
496496
remote_port: int, timeout: int, remote_user: str, ssh_options: List[str],
497497
compress: bool, log_success: bool) -> None:
498498
log.debug('rsync_forecast() start')
499-
rsync_upload = RsyncUpload(
499+
rsync_upload = weeutil.rsyncupload.RsyncUpload(
500500
local_file,
501501
remote_file,
502502
server=remote_host,
@@ -1722,8 +1722,6 @@ def fetch_records_internal(dbm: weewx.manager.Manager, forecast_type: ForecastTy
17221722
if __name__ == '__main__':
17231723
usage = """%prog [options] [--help]"""
17241724

1725-
import weewx
1726-
17271725
weeutil.logger.setup('nws', {})
17281726

17291727
def main():

0 commit comments

Comments
 (0)