USING: accessors combinators environment
gobject-introspection.common gobject-introspection.ffi
gobject-introspection.loader gobject-introspection.types io
-io.files io.pathnames kernel lexer locals make namespaces parser
+io.files io.pathnames kernel lexer make namespaces parser
sequences splitting summary vocabs vocabs.parser xdg xml ;
IN: gobject-introspection
M: gir-not-found summary
[ name>> "“" "” file not found on paths:\n" surround ]
- [ paths>> "\n" join ] bi
+ [ paths>> join-lines ] bi
"\n\nUse the existing path or declare GIR_DIRS environment variable"
3append ;
] { } make ;
:: resolve-gir-path ( path -- path )
- path exists?
+ path file-exists?
[ path ] [
current-vocab-dirs custom-gir-dirs system-gir-dirs
3append sift :> paths
- paths [ path append-path exists? ] find nip
+ paths [ path append-path file-exists? ] find nip
[ path append-path ] [ path paths gir-not-found ] if*
] if ;