Skip to content

Commit

Permalink
Automatically detect new binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
mitiko committed Mar 3, 2024
1 parent 0a77608 commit 380bb6e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@
import argparse
import subprocess
from os import environ as env
import os

parser = argparse.ArgumentParser(
prog="weath3rb0i",
description="The weath3rb0i binary executor",
epilog="Run `cargo run` for the default",
)

binaries = [
"weath3rb0i",
"order0",
"ac-over-huffman",
]
binaries_path = os.path.join(os.path.dirname(__file__), './src/bin/')
binaries = os.listdir(binaries_path)
binaries.insert(0, 'weath3rb0i')

# Add all parameters globally but only use the ones we require per binary (no checks for extra args)
parser.add_argument("bin", type=int, nargs="?", help="Which binary (by id) to run")
Expand Down

0 comments on commit 380bb6e

Please sign in to comment.