From f7571404f308d889dc0e7baf1edea3774b8e45f5 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 16 Jun 2020 16:46:19 +0200 Subject: Added custom PATH to improve perfomance, Added syntax error test --- config.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'config.py') diff --git a/config.py b/config.py index a1a8d32..64c4706 100644 --- a/config.py +++ b/config.py @@ -1,4 +1,5 @@ # Minishell configuration file +import os # minishell dir path MINISHELL_DIR = ".." @@ -16,6 +17,15 @@ LOG_PATH = "result.log" # path to the sandbox directory SANDBOX_PATH = "sandbox" +# where the availables commands are stored +EXECUTABLES_PATH = "./bin" + +# commands available in test" +AVAILABLE_COMMANDS = ["cat", "touch"] + +# $PATH environment variable passed to the shell +PATH_VARIABLE = os.path.abspath(EXECUTABLES_PATH) + LOREM = """ Mollitia asperiores assumenda excepturi et ipsa. Nihil corporis facere aut a rem consequatur. Quas molestiae corporis et quibusdam maiores. Molestiae sed unde aut at sed. @@ -35,7 +45,6 @@ LOREM = ' '.join(LOREM.split('\n')) # do not edit -import os MINISHELL_PATH = os.path.abspath( os.path.join(MINISHELL_DIR, MINISHELL_EXEC) -- cgit