import distro import subprocess class Server: def run(self): self.start() def start(self): if distro.id() == 'nixos': subprocess.run(["hunchentoot-lisp-launcher.sh", "--load", "server.lisp"]) else: subprocess.run(["sbcl", "--load", "server.lisp"]) def Main(): s = Server() s.run() if __name__ == '__main__': Main()