shorter version
    
    
    const apple {.strdefine.} = "default_value"
    template toImport(x: static[string]): untyped = import x
    
    toImport(apple & "tools")
    
    
    Run

Reply via email to