Skip to content

Commit

Permalink
Merge pull request #644 from acepace/bugfix/remove_wmi_requirement_fr…
Browse files Browse the repository at this point in the history
…om_non_windows

Bugfix/remove wmi requirement from non windows
  • Loading branch information
ShayNehmad authored May 11, 2020
2 parents e73c1d0 + 1f11173 commit c700412
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 29 deletions.
6 changes: 4 additions & 2 deletions monkey/common/utils/mongo_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import wmi
import win32com
import sys
if sys.platform == 'win32':
import win32com
import wmi

__author__ = 'maor.rayzin'

Expand Down
25 changes: 0 additions & 25 deletions monkey/common/utils/reg_utils.py

This file was deleted.

3 changes: 1 addition & 2 deletions monkey/infection_monkey/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ ipaddress
# See breaking change here: https://github.com/tjguk/wmi/commit/dcf8e3eca79bb8c0101ffb83e25c066b0ba9e16d
# Causes pip to error with:
# Could not find a version that satisfies the requirement pywin32 (from wmi->-r /src/infection_monkey/requirements.txt (line 12)) (from versions: none)
wmi==1.4.9
pywin32 ; sys_platform == 'win32'
wmi==1.4.9 ; sys_platform == 'win32'
pymssql<3.0
pyftpdlib
WinSys-3.x

0 comments on commit c700412

Please sign in to comment.