Move a rarely used import statement closer to where it's needed in sshync

Former-commit-id: aceb7e080b29fedf9e8a52ab052af32450491b88 [formerly c31a5a1664]
Former-commit-id: 9844be47e81146aff688e7e1c8462ffc147ab29d
This commit is contained in:
2022-10-11 09:28:13 -04:00
parent 1e290a1f26
commit 185ae4ebff
+1 -1
View File
@@ -4,13 +4,13 @@
from os import path, system, walk from os import path, system, walk
from os.path import expanduser, getmtime, join from os.path import expanduser, getmtime, join
from pathlib import Path
from sys import exit as s_exit from sys import exit as s_exit
# utility functions # utility functions
def get_titles_mods(_directory, _destination, _user_data): # fetches and returns lists of titles and their mod times def get_titles_mods(_directory, _destination, _user_data): # fetches and returns lists of titles and their mod times
from pathlib import Path
_title_list, _mod_list = [], [] _title_list, _mod_list = [], []
Path(path.expanduser('~/.config/sshync')).mkdir(0o700, parents=True, exist_ok=True) # create config directory Path(path.expanduser('~/.config/sshync')).mkdir(0o700, parents=True, exist_ok=True) # create config directory
# local fetching # local fetching