{{newin|[[0.10.0]]|100|type=function}}
Sets the filesystem paths that will be searched when [http://www.lua.org/manual/5.1/manual.html#pdf-require require] is called.

The paths string given to this function is a sequence of path templates separated by semicolons. The argument passed to ''require'' will be inserted in place of any question mark ("?") character in each template (after the dot characters in the argument passed to ''require'' are replaced by directory separators.)

The paths are relative to the game's source and save directories, as well as any paths mounted with [[love.filesystem.mount]].
== Function ==
=== Synopsis ===
<source lang="lua">
love.filesystem.setRequirePath( paths )
</source>
=== Arguments ===
{{param|string|paths|The paths that the ''require'' function will check in love's filesystem.}}
=== Returns ===
Nothing.

== Notes ==
The default paths string is <code>"?.lua;?/init.lua"</code>, which makes <code>require("cool")</code> try to load <code>cool.lua</code> and then try <code>cool/init.lua</code> if cool.lua doesn't exist.

== See Also ==
* [[parent::love.filesystem]]
* [[love.filesystem.getRequirePath]]
[[Category:Functions]]
{{#set:Description=Sets the filesystem paths that will be searched when [http://www.lua.org/manual/5.1/manual.html#pdf-require require] is called.}}
== Other Languages ==
{{i18n|love.filesystem.setRequirePath}}