Skip to content

Commit fb529b1

Browse files
committed
fix: added platform check for non-Windows 'pwd' library
1 parent 5e896b5 commit fb529b1

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)