Hello. I am trying to create a source file with variables containing paths to 
other sources files. My need is to rescue resources for the current source 
file, so my idea is to achieve it with something like this:

variablePathFromFileContainingResource="./folderContainingResourceSource/FileFromResourceSource.resource"
 from pathsFile import variablePathFromFileContainingResource

I tried to do it with this macro importing previously the source where it is 
located:

import macros

macro getContentVariable*(variable: untyped): untyped =
    

quote do:
    `variable`

With which, although unsuccessfully, I have tried the syntax:

from pathsFile import getContentVariable(variablePathFromFileContainingResource)

Well, I could do it in the past with other languages, but in Nim it doesn't 
work. :-)

Any suggestions?

Best regards. Antonio F.S.

Reply via email to