you can use a 
[strdefine](https://nim-lang.org/docs/manual.html#implementation-specific-pragmas-compileminustime-define-pragmas):
    
    
    const FirmwarePath {.strdefine.} = "defaultPath.elf"
    const FirmwareData = staticRead FirmwarePath
    
    
    Run

then compile with nim c -d:FirmwarePath=abc.elf file.nim

Reply via email to