jwdj / EasyABC

EasyABC
GNU General Public License v2.0
87 stars 36 forks source link

Fix determining gs_path on Linux. Fixes #66 #71

Open sudobash1 opened 1 year ago

sudobash1 commented 1 year ago

Fixes #66

When running EasyABC for the first time under Linux, it tries to determine the path to gs from the output of which gs. However, in python3, it returns a bytestring (eg b'/usr/bin/gs\n'). EasyABC is expecting a str. Simply adding .decode() fixes the issue.

As I read the code, the unicode() call is left over from python2 and can be removed.

Tested on Manjaro linux, python3.10.10

Cheers :beers: