You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
387 B
20 lines
387 B
2 years ago
|
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()
|