From ef3a71afe539e170617b29b0302163e2ac3919c7 Mon Sep 17 00:00:00 2001
From: Shay Nehmad <shay.nehmad@guardicore.com>
Date: Thu, 16 Apr 2020 19:09:42 +0300
Subject: [PATCH] Added the attack_data folder to the datas

---
 monkey/monkey_island/monkey_island.spec | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/monkey/monkey_island/monkey_island.spec b/monkey/monkey_island/monkey_island.spec
index e34a25a27..fd6d0c3e1 100644
--- a/monkey/monkey_island/monkey_island.spec
+++ b/monkey/monkey_island/monkey_island.spec
@@ -1,7 +1,7 @@
 # -*- mode: python -*-
 import os
 import platform
-
+import sys
 
 __author__ = 'itay.mizeretz'
 
@@ -9,15 +9,20 @@ block_cipher = None
 
 
 def main():
+    # These data files and folders will be included in the bundle.
+    # The format of the tuples is (src, dest_dir). See https://pythonhosted.org/PyInstaller/spec-files.html#adding-data-files
+    added_datas = [
+        ("../common/BUILD", "/common"),
+        ("../monkey_island/cc/services/attack/attack_data", "/monkey_island/cc/services/attack/attack_data")
+    ]
+
     a = Analysis(['cc/main.py'],
                  pathex=['..'],
                  hiddenimports=get_hidden_imports(),
                  hookspath=None,
                  runtime_hooks=None,
                  binaries=None,
-                 datas=[
-                    ("../common/BUILD", "/common")
-                 ],
+                 datas=added_datas,
                  excludes=None,
                  win_no_prefer_redirects=None,
                  win_private_assemblies=None,