1 module Puppet::Parser::Functions
2 newfunction(:get_module_path, :type =>:rvalue, :doc => <<-EOT
3 Returns the absolute path of the specified module for the current
7 $module_path = get_module_path('stdlib')
10 raise(Puppet::ParseError, "get_module_path(): Wrong number of arguments, expects one") unless args.size == 1
11 if module_path = Puppet::Module.find(args[0], compiler.environment.to_s)
14 raise(Puppet::ParseError, "Could not find module #{args[0]} in environment #{compiler.environment}")