diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2020-03-27 12:45:34 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2020-03-27 12:45:34 -0400 |
| commit | 9246e09588553c3b7a93c79cf2cc719969252f69 (patch) | |
| tree | b4752e55fbc10de546113952481334845d3f9dfd /python | |
| parent | 6afc2a08dd49c89105843745cf72189922ca986f (diff) | |
support for cygwin python
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 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"); |
