Skip to content

Commit 577ea06

Browse files
committed
fix: added platform check for non-Windows 'pwd' library
1 parent f5a52ef commit 577ea06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mamonsu/lib/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
import pwd
32
import socket
43
import os
54
import logging
@@ -11,6 +10,8 @@
1110
from mamonsu.plugins.pgsql.driver.checks import is_conn_to_db
1211
from mamonsu.lib.default_config import DefaultConfig
1312

13+
if platform.LINUX:
14+
import pwd
1415

1516
import configparser
1617

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy