mirror of
https://github.com/onionshare/onionshare.git
synced 2025-12-16 08:44:14 -05:00
Only import pwd in macOS, because it does not exist in Windows
This commit is contained in:
parent
1a6c2f3d63
commit
c0faa4a352
1 changed files with 4 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue