mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-10 03:37:28 -03:00
pwd module doesn't exist in Windows
This commit is contained in:
parent
ec5eff5f9d
commit
6e0081ceba
1 changed files with 6 additions and 1 deletions
|
@ -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 a new issue