ich habe diesen kleinen Server:
Code: Alles auswählen
@route('/html/<filename>')
def server_static(filename):
return static_file(filename, root='/home/xsu/.launcher/html')
## as GET
@route('/index')
def index():
id2 = request.query.id1
page2 = request.query.page1
print(id2)
try:
subprocess.run([id2])
except Exception as e:
print(e)
return template('./cols2.html', id1=id2, page=page2)
run(host='localhost', port=8000, reloader=True)
Ich möchte den Server gerne automatisch starten, z.B in der .xinitrc (Ubuntu)
Ein:
Code: Alles auswählen
python3 home/xsu/.launcher/server.py
sowie:
ln -s
funktionieren nicht.
Mfg d