Only import pwd in macOS, because it does not exist in Windows

This commit is contained in:
Micah Lee 2020-08-21 14:49:23 -04:00
parent 1a6c2f3d63
commit c0faa4a352
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -18,8 +18,11 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import os
import pwd
import json
import platform
if platform.system() == "Darwin":
import pwd
class ModeSettings: