nitc :: AAnnotation :: as_relative_paths
If no arguments are given, then use the parent directory of the module.
# Parse all arguments as paths relative to the declaring module
#
# If no arguments are given, then use the parent directory of the module.
private fun as_relative_paths(modelbuilder: ModelBuilder): Array[String]
do
var paths = new Array[String]
var file = location.file
if file == null then return paths
var args = n_args
if args.is_empty then
paths.add file.filename.dirname
else
for arg in args do
var val = arg.as_string
if val != null then
paths.add file.filename.dirname/val
else modelbuilder.error(arg, "Syntax Error: `app_files` expects String literals as arguments.")
end
end
return paths
end
src/platform/app_annotations.nit:144,2--167,4