We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ebe7bb commit 38ace15Copy full SHA for 38ace15
1 file changed
arrayfire/library.py
@@ -12,12 +12,16 @@
12
13
def load_backend(name):
14
platform_name = platform.system()
15
+ assert(len(platform_name) >= 3)
16
17
libname = 'libaf' + name
18
if platform_name == 'Linux':
19
libname += '.so'
20
elif platform_name == 'Darwin':
21
libname += '.dylib'
22
+ elif platform_name == "Windows" or platform_name[:3] == "CYG":
23
+ libname += '.dll'
24
+ libname = libname[3:] # remove 'lib'
25
else:
26
raise OSError(platform_name + ' not supported')
27
0 commit comments