Fix bad variable name when checking for privacy-protected directories

This commit is contained in:
Greg Neagle 2020-09-18 13:55:55 -07:00 committed by GitHub
parent e59d8b84cb
commit 96b8430d4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -510,7 +510,7 @@ def main():
if os.path.expanduser("~") in current_dir:
bad_dirs = ['Documents', 'Desktop', 'Downloads', 'Library']
for bad_dir in bad_dirs:
if bad_dir in os.path.split(this_dir):
if bad_dir in os.path.split(current_dir):
print('Running this script from %s may not work as expected. '
'If this does not run as expected, please run again from '
'somewhere else, such as /Users/Shared.'