mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Only import ctypes.wintypes on Windows
This commit is contained in:
parent
5a42670549
commit
5d3ed5877b
1 changed files with 4 additions and 2 deletions
|
@ -32,14 +32,16 @@ except ImportError:
|
|||
HAS_GRP = False
|
||||
|
||||
try:
|
||||
import ctypes.wintypes
|
||||
|
||||
import salt.utils.win_functions
|
||||
|
||||
HAS_WIN_FUNCTIONS = True
|
||||
except ImportError:
|
||||
HAS_WIN_FUNCTIONS = False
|
||||
|
||||
if sys.platform == "win32":
|
||||
import ctypes.wintypes
|
||||
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue