puppetlabs/puppet — pull request #905 by pcarlisle (2012-07-04 00:43:39+00:00)
Title: Maint/3.0rc/modulepath cache before initialized

Calling module_directories before settings are initialized (and therefore
before the modulepath is known) returns an empty array. We probably don't want
to cache this, and it might interfere with loading from the modulepath once it
is initialized.