pwd module doesn't exist in Windows

This commit is contained in:
Micah Lee 2018-12-19 11:45:31 -08:00
parent ec5eff5f9d
commit 6e0081ceba
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -22,7 +22,12 @@ import json
import os import os
import platform import platform
import locale 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 from . import strings