diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/generator.cpp | 2 |
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"); |
