Import Windows specific modules only on Windows systems
This commit is contained in:
parent
4640a760ff
commit
b4708fc2cb
|
@ -1,7 +1,10 @@
|
|||
import ntsecuritycon
|
||||
import win32api
|
||||
import win32con
|
||||
import win32security
|
||||
from monkey_island.cc.environment.utils import is_windows_os
|
||||
|
||||
if is_windows_os():
|
||||
import ntsecuritycon
|
||||
import win32api
|
||||
import win32con
|
||||
import win32security
|
||||
|
||||
|
||||
def set_full_folder_access(folder_path: str) -> None:
|
||||
|
|
Loading…
Reference in New Issue