diff options
author | Micah Lee <micah@micahflee.com> | 2020-08-21 14:49:23 -0400 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2020-08-21 14:49:23 -0400 |
commit | c0faa4a3523da88a3141a1c93eae2ae23bad1532 (patch) | |
tree | cccdcbceed876b3fd6ebca3285fe7d51e8740138 /onionshare | |
parent | 1a6c2f3d6382a210398541c86c6eae8ee125aaf7 (diff) | |
download | onionshare-c0faa4a3523da88a3141a1c93eae2ae23bad1532.tar.gz onionshare-c0faa4a3523da88a3141a1c93eae2ae23bad1532.zip |
Only import pwd in macOS, because it does not exist in Windows
Diffstat (limited to 'onionshare')
-rw-r--r-- | onionshare/mode_settings.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>. """ import os -import pwd import json +import platform + +if platform.system() == "Darwin": + import pwd class ModeSettings: |