Final refactor

This commit is contained in:
BarsTiger
2022-02-07 22:32:50 +02:00
parent 46b5329318
commit 7bb411871e
4 changed files with 13 additions and 4 deletions

View File

@@ -123,7 +123,7 @@ def install(package):
with open('{1}apps/{0}.bat'.format(r['name'], horsy_vars.horsypath), 'w') as f:
f.write(f"@ECHO off\n")
f.write(f"{horsy_vars.horsypath[0:2:1]}\n")
f.write(f"%horsypath:~0,1%:\n")
f.write(f"cd %horsypath%/apps/{r['name']}\n")
f.write(f"{r['run']} %*\n")