pwd module doesn't exist in Windows

This commit is contained in:
Micah Lee 2018-12-19 11:45:31 -08:00
parent 2a1e9d4fa2
commit 3edad12e89

View File

@ -22,7 +22,12 @@ import json
import os
import platform
import locale
import pwd
try:
# We only need pwd module in macOS, and it's not available in Windows
import pwd
except:
pass
from . import strings