From 561d49d30d1115baec4c7dacd88fbc3705d08b8d Mon Sep 17 00:00:00 2001 From: Haron-Benfaida <110578609+Haron-Benfaida@users.noreply.github.com> Date: Thu, 17 Oct 2024 11:37:30 -0700 Subject: [PATCH] Make the pycparser_utils_path var get path automatically --- src/backend/generate_executable.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/generate_executable.py b/src/backend/generate_executable.py index d64cba3..27dcd39 100644 --- a/src/backend/generate_executable.py +++ b/src/backend/generate_executable.py @@ -1,8 +1,9 @@ from pycparser import parse_file, c_generator from pycparser.c_ast import FuncDef, Decl, FuncCall, ID, Compound, TypeDecl, IdentifierType, FuncDecl, ParamList, Return, Constant, Assignment, ExprList, BinaryOp, NamedInitializer, InitList, Struct, ArrayDecl, Cast, Typename import os +import pycparser_fake_libc -pycparser_utils_path = '/Users/abdallaeltayeb/Desktop/Gamtime_project/pycparser/utils/fake_libc_include' +pycparser_utils_path = pycparser_fake_libc.directory class ExecutableTransformer(object): """