summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2020-03-28 18:42:10 -0400
committerJordan Wiens <jordan@psifertex.com>2020-03-28 18:42:10 -0400
commitff22c89fa6ac1f67fd6ee22cf7f23242856bc161 (patch)
treee58a9b9842d1895dc8ac0a016fa9596cf9b3b41c /python
parent9246e09588553c3b7a93c79cf2cc719969252f69 (diff)
fix cygwin detection
Diffstat (limited to 'python')
-rw-r--r--python/generator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/generator.cpp b/python/generator.cpp
index 066f3134..ff1b153d 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\" or core_platform == \"CYGWIN_NT\":\n");
+ fprintf(out, "elif (core_platform == \"Windows\") or (core_platform.find(\"CYGWIN_NT\") == 0):\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");