Skip to content

Commit 9f994ca

Browse files
committed
Added main code. TODO: Write manual
1 parent 806c6c6 commit 9f994ca

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
pyinstaller --onefile src/main.py
4+
5+
273 Bytes
Binary file not shown.
271 Bytes
Binary file not shown.

src/main.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
from __future__ import annotations
2+
import subprocess as sp
3+
import sys
4+
import manual_docstr
5+
6+
def main():
7+
filenames = sys.argv[1:]
8+
9+
if len(filenames) == 0:
10+
print(manual_docstr.__doc__)
11+
return
12+
13+
for file in filenames:
14+
sp.run(["touch", file])
15+
sp.run(["sudo", "chmod", "+x", file])
16+
17+
18+
if __name__ == "__main__":
19+
main()
20+
21+
22+

0 commit comments

Comments
 (0)