summaryrefslogtreecommitdiff
path: root/python/generator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'python/generator.cpp')
-rw-r--r--python/generator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/generator.cpp b/python/generator.cpp
index 0f52c1bf..066f3134 100644
--- a/python/generator.cpp
+++ b/python/generator.cpp
@@ -195,7 +195,7 @@ int main(int argc, char* argv[])
fprintf(out, "elif core_platform == \"Linux\":\n");
fprintf(out, "\t_base_path = os.path.join(os.path.dirname(__file__), \"..\", \"..\")\n");
fprintf(out, "\tcore = ctypes.CDLL(os.path.join(_base_path, \"libbinaryninjacore.so.1\"))\n\n");
- fprintf(out, "elif core_platform == \"Windows\":\n");
+ fprintf(out, "elif core_platform == \"Windows\" or core_platform == \"CYGWIN_NT\":\n");
fprintf(out, "\t_base_path = os.path.join(os.path.dirname(__file__), \"..\", \"..\")\n");
fprintf(out, "\tcore = ctypes.CDLL(os.path.join(_base_path, \"binaryninjacore.dll\"))\n");
fprintf(out, "else:\n");