mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-29 08:47:18 -04: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 os
|
||||||
import platform
|
import platform
|
||||||
import locale
|
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
|
from . import strings
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue