diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-06-16 16:46:19 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-06-16 16:46:19 +0200 |
| commit | f7571404f308d889dc0e7baf1edea3774b8e45f5 (patch) | |
| tree | 9d4bcaa28ead46f23b67ca9ace035ceac48f6a3a /config.py | |
| parent | b636afa67abd97c61259071922d2f4f6f34a60b7 (diff) | |
| download | minishell_test-f7571404f308d889dc0e7baf1edea3774b8e45f5.tar.gz minishell_test-f7571404f308d889dc0e7baf1edea3774b8e45f5.tar.bz2 minishell_test-f7571404f308d889dc0e7baf1edea3774b8e45f5.zip | |
Added custom PATH to improve perfomance, Added syntax error test
Diffstat (limited to 'config.py')
| -rw-r--r-- | config.py | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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) |
