@@ -77,9 +77,9 @@ def __init__(self, filename, pl2_dll_file_path=None):
7777 # download default PL2 dll once if not yet available
7878 if pl2_dll_file_path is None :
7979 architecture = platform .architecture ()[0 ]
80- if architecture == '64bit' :
80+ if architecture == '64bit' and platform . system () == 'Windows' :
8181 file_name = "PL2FileReader64.dll"
82- else :
82+ else : # Apparently wine uses the 32 bit version in linux
8383 file_name = "PL2FileReader.dll"
8484
8585 pl2_dll_folder = pathlib .Path .home () / '.plexon_dlls_for_neo'
@@ -88,11 +88,12 @@ def __init__(self, filename, pl2_dll_file_path=None):
8888
8989 if pl2_dll_file_path .exists ():
9090 # I think this warning should be removed
91- # Warnings should provide a solution but this is just a reminder to the user of normal behavior
92- # Nothing to do
91+ # Warnings should provide a solution but this is
92+ # just a reminder to the user of normal behavior
9393 warnings .warn (f'Using cached plexon dll at { pl2_dll_file_path } ' )
9494 else :
95- dist = urlopen (f'https://raw.githubusercontent.com/Neuralensemble/pypl2/master/bin/{ file_name } ' )
95+ url = f'https://raw.githubusercontent.com/Neuralensemble/pypl2/master/bin/{ file_name } '
96+ dist = urlopen (url = url )
9697
9798 with open (pl2_dll_file_path , 'wb' ) as f :
9899 print (f'Downloading plexon dll to { pl2_dll_file_path } ' )
0 commit comments