mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
pwd module doesn't exist in Windows
This commit is contained in:
parent
ec5eff5f9d
commit
6e0081ceba
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user