I think it's Puppet[:basemodulepath] but this needs to be combined with your environment path search.
Trevor On Thu, Sep 4, 2014 at 1:03 PM, Nan Liu <nan....@gmail.com> wrote: > I have some code that's doing module searching in the module path: > > example = Puppet::Module.find('example', Puppet[:environment].to_s) > raise(LoadError, "Unable to find example module in modulepath > #{Puppet[:modulepath]}") unless example > > In Puppet 3.6, the second line is triggering a the following warning: > Warning: Accessing 'modulepath' as a setting is deprecated. See > http://links.puppetlabs.com/env-settings-deprecations > > I was able to trace the changes to PUP-2650, but it's not really clear > where the setting is stored now. What's the correct way to access the > modulepath configuration in 3.6? > > Thanks, > > Nan > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-dev+unsubscr...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/puppet-dev/54089B49.40304%40gmail.com. > For more options, visit https://groups.google.com/d/optout. > -- Trevor Vaughan Vice President, Onyx Point, Inc (410) 541-6699 tvaug...@onyxpoint.com -- This account not approved for unencrypted proprietary information -- -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/CANs%2BFoWMs_%2B3_N3HECGeUsBxOO62VdrLrA6aAjd97fjn_Vx4yQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.