uym2 / TreeShrink

Implementation of the TreeShrink problem
https://uym2.github.io/TreeShrink/
GNU General Public License v3.0
36 stars 11 forks source link

IndexError due to double backslash windows directories. #41

Closed AshtonPooley closed 3 days ago

AshtonPooley commented 1 year ago

Due to Windows using double backslash and the recursive list dir function assuming directories use a single forward slash the following exception is caused during installation

Traceback (most recent call last): File "D:\GitHub\TreeShrink\setup.py", line 25, in <module> 'package_data':{'':recursive_list_dir('Rlib')+recursive_list_dir('R_scripts')}, File "D:\GitHub\TreeShrink\setup.py", line 14, in recursive_list_dir listing.append(z.split(path+'/')[1]) IndexError: list index out of range

uym2 commented 3 days ago

Merged. I am thankful for the fix!