From 2e3cc42fcd24202a50f709ee8fd8e62039464903 Mon Sep 17 00:00:00 2001 From: Christoph Weiss Date: Tue, 20 Jun 2023 09:24:32 +0200 Subject: [PATCH] Asm2Cfg: Add shell script for easy executing --- asm2cfg | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 asm2cfg diff --git a/asm2cfg b/asm2cfg new file mode 100755 index 0000000..4f1b04a --- /dev/null +++ b/asm2cfg @@ -0,0 +1,12 @@ +#!/bin/sh + +# SPDX-License-Identifier: GTDGmbH +# Copyright 2023 by GTD GmbH. + +dir="$(dirname "$(readlink -f "$0")")" +cd $dir +export PATH=$dir/bin:$PATH +if [ -d "venv" ]; then + . venv/bin/activate +fi +python3 -m ocgraph.__main__ "$@"