From 681698b7e59cff93a486a033f2f019d3ebce3edc Mon Sep 17 00:00:00 2001 From: jan Date: Tue, 12 Jul 2016 00:09:20 -0700 Subject: [PATCH] load the dll... --- py_aax_decode/native.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/py_aax_decode/native.py b/py_aax_decode/native.py index 7af4bf5..93b3ce8 100644 --- a/py_aax_decode/native.py +++ b/py_aax_decode/native.py @@ -18,7 +18,12 @@ class MetaData(Enum): # _unknown3 = 0x4075616 #STILLNOKLINGON? -def main(in_file, out_file): +def main(in_file, out_file, dll_path=None): + if dll_path is None: + dll_path = 'c:\\Program Files (x86)\\Audible\\Bin\\AAXSDKWin.dll' + + dll = ctypes.CDLL(dll_path) + handle = open_file(dll, in_file) a = (dll, handle)