Download

GetCurrentFilename() returns path in relative mode but FXmlFile cannot open it.

I’ve made a class that inherits from UFactory and this seems to work ok but getting the imported file with GetCurrentFilename() this path is returned in relative mode ie “…/…/…/…/myfolder/myfile.xml” but FXmlFile cannot open it properly, of course I tested to hardcode the path given to FXmlFile and it works ok.

Any idea about this or how to get the file in absolute path mode?

Thank you in advance