How to concat a path + filename in python?
Solution 1:
Thanks to the comments of Barmar and Olvin Roght, I have resolved the problem. This is the answer:
def ejecutar_sql(archivo, parametro):
sp.ejecutar_archivo(os.path.join(os.path.dirname(os.path.abspath(__file__)),f'{archivo}' ), parametro)