From c0faa4a3523da88a3141a1c93eae2ae23bad1532 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Fri, 21 Aug 2020 14:49:23 -0400 Subject: [PATCH] Only import pwd in macOS, because it does not exist in Windows --- onionshare/mode_settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/onionshare/mode_settings.py b/onionshare/mode_settings.py index 8216c1d8..f141f8c5 100644 --- a/onionshare/mode_settings.py +++ b/onionshare/mode_settings.py @@ -18,8 +18,11 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . """ import os -import pwd import json +import platform + +if platform.system() == "Darwin": + import pwd class ModeSettings: