Import Windows specific modules only on Windows systems

This commit is contained in:
shreyamalviya 2021-05-20 16:55:27 +05:30 committed by Shreya
parent 4640a760ff
commit b4708fc2cb
1 changed files with 7 additions and 4 deletions

View File

@ -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: