-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug in identifying actual user homes
- Loading branch information
1 parent
f8d03ce
commit c832e7f
Showing
2 changed files
with
54 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ | |
__author__ = 'David G. Rosenberg' | ||
__copyright__ = 'Copyright (c), Mac Set Default Apps' | ||
__license__ = 'MIT' | ||
__version__ = '1.1.0' | ||
__version__ = '1.1.1' | ||
__email__ = '[email protected]' | ||
|
||
|
||
|
@@ -117,7 +117,12 @@ def get_current_username(): | |
|
||
def gather_user_ls_paths(): | ||
gathered_users = os.listdir(USER_HOMES_LOCATION) | ||
ls_paths = [ create_user_ls_path(u) for u in gathered_users ] | ||
ls_paths = [] | ||
for user in gathered_users: | ||
user_ls_path = create_user_ls_path(user) | ||
if os.path.exists(user_ls_path): | ||
ls_paths.append(user_ls_path) | ||
|
||
return ls_paths | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters