summaryrefslogtreecommitdiffstatshomepage
path: root/unix/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/main.c')
-rw-r--r--unix/main.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/unix/main.c b/unix/main.c
index f73c98ed69..d66595cd66 100644
--- a/unix/main.c
+++ b/unix/main.c
@@ -147,18 +147,6 @@ static void do_repl(void) {
}
static void do_file(const char *file) {
- // hack: set dir for import based on where this file is
- {
- const char * s = strrchr(file, '/');
- if (s != NULL) {
- int len = s - file;
- char *dir = m_new(char, len + 1);
- memcpy(dir, file, len);
- dir[len] = '\0';
- mp_import_set_directory(dir);
- }
- }
-
mp_lexer_t *lex = mp_lexer_new_from_file(file);
execute_from_lexer(lex, MP_PARSE_FILE_INPUT, false);
}