regularising _URL and _ROOT idiom

This commit is contained in:
Philip Sargent
2022-04-18 22:48:49 +03:00
parent ccd386ff4e
commit 3813b21dcf
6 changed files with 11 additions and 9 deletions

View File

@@ -111,7 +111,7 @@ def load_all_scans():
DataIssue.objects.filter(parser='scans').delete()
# first do the smkhs (large kh survey scans) directory
manywallets_smkhs = Wallet(fpath=os.path.join(settings.SURVEY_SCANS, "../surveys/smkhs"), walletname="smkhs")
manywallets_smkhs = Wallet(fpath=os.path.join(settings.SCANS_ROOT, "../surveys/smkhs"), walletname="smkhs")
print("smkhs", end=' ')
if os.path.isdir(manywallets_smkhs.fpath):
manywallets_smkhs.save()
@@ -120,7 +120,7 @@ def load_all_scans():
# iterate into the surveyscans directory
print(' - ', end=' ')
for f, ff, fisdir in GetListDir(settings.SURVEY_SCANS):
for f, ff, fisdir in GetListDir(settings.SCANS_ROOT):
if not fisdir:
continue