lazr-developers team mailing list archive
-
lazr-developers team
-
Mailing list archive
-
Message #00001
[Bug 309859] [NEW] ConfigSchema should provide an interface for constructing from a string
Public bug reported:
ConfigSchema.__init__() takes a filename argument. This can cause
problems if your schema file lives inside an egg. You'd like to use
pkg_resource.resource_string() to get the schema as a string, but this
can't be passed to ConfigSchema's constructor. Okay, you can use
pkg_resource.resource_filename(), but that creates a cache file, which
is kind of ugly.
ConfigSchema's constructor should accept a filename or file-like object.
** Affects: lazr.config
Importance: Undecided
Status: New
--
ConfigSchema should provide an interface for constructing from a string
https://bugs.launchpad.net/bugs/309859
You received this bug notification because you are a member of LAZR
Developers, which is the registrant for lazr.config.
Status in lazr.config: New
Bug description:
ConfigSchema.__init__() takes a filename argument. This can cause problems if your schema file lives inside an egg. You'd like to use pkg_resource.resource_string() to get the schema as a string, but this can't be passed to ConfigSchema's constructor. Okay, you can use pkg_resource.resource_filename(), but that creates a cache file, which is kind of ugly.
ConfigSchema's constructor should accept a filename or file-like object.
Follow ups
References