From 71a916c922916ae6b888ea792c06632c51db4934 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Mon, 20 Sep 2021 12:21:36 +0300 Subject: [PATCH 1/3] fix deps --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1bae99c..594d382 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,9 @@ setup( author='Maxim Slipenko', packages=['turinglab'], install_requires = [ - 'python-docx' + 'python-docx', + 'pydot', + 'requests' ], entry_points = { 'console_scripts': [ From 4875005153c1c3800740d7295d7807f27c60d7a9 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Mon, 20 Sep 2021 12:21:51 +0300 Subject: [PATCH 2/3] fix empty character --- turinglab/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/turinglab/__main__.py b/turinglab/__main__.py index a916508..5b4133d 100644 --- a/turinglab/__main__.py +++ b/turinglab/__main__.py @@ -32,7 +32,9 @@ def main(): test_data = [] for test in args.tests: - test = test.replace(args.empty_character, 'λ') + + if args.empty_character: + test = test.replace(args.empty_character, 'λ') tm = Emulator(program, test) From 3bf31f8cb962d7553e79621391730fcafd681e89 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Mon, 20 Sep 2021 12:23:29 +0300 Subject: [PATCH 3/3] update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6f10340..76ed57a 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ python setup.py develop ## Usage ```bat -turinglab +turinglab input_file output_dir [-t TESTS [TESTS ...]] [-e EMPTY_CHARACTER] [-f] ``` ### Example