<@U0BLRBFMM>: not sure how constant binding should...
# kodein
a
@salomonbrys: not sure how constant binding should inject if this doesn't work...
Copy code
val testConf = Paths.get(this.javaClass.getClassLoader().getResource("test.conf").toURI())!!
val kodein = Kodein {
            constant("CONFIGFILE") with testConf
            import(KovertApp.makeKodeinModule(testConf))
        }
then later
Copy code
val configFile: Path = kodein.instance("CONFIGFILE")
error
Copy code
com.github.salomonbrys.kodein.Kodein$NotFoundException: No provider found for bind<Path>("CONFIGFILE")
which shows I have it bound as:
Copy code
bind<UnixPath>("CONFIGFILE") with instance ( Path )
And there is nothing I can do to make it not bind as
UnixPath
, casting, variable assignment, everything only gives me a UnixPath
Copy code
constant("CONFIGFILE") with(testConf as Path)
Still binds
UnixPath