Making DeVeDeNG run on FreeBSD

Hello, I have tried to make your program fun on FreeBSD, and it works fine, there just needs to be one change:

in /usr/local/lib/python3.8/site-packages/devedeng/configuration_data.py

the system needs to change proc_file = open To anything FreeBSD recognizes. As a quick hack, I have replaced it as such (I have very little to almost no programming knowledge, so this may not be the best way to do it):

´´def _fill_config(self): self.cores = 0 proc_file = open("/var/run/dmesg.boot") for line in proc_file: if (line.startswith("FreeBSD/SMP: Multiprocessor System Detected")): self.cores += 1 proc_file.close() ´´

This enables the program to run just fine, tested on FreeBSD 13.

Like I said, I don't know if this is the best way to do this, or if you are even interested in supporting the OS, but maybe this will be helpful for someone. :)

Assignee Loading
Time tracking Loading