directories = ['~/.moodle-sdk']
if C.get('dirs.moodle') != None:
directories.insert(0, C.get('dirs.moodle'))
+ directories.append('/etc/moodle-sdk')
directories.append(os.path.join(os.path.dirname(__file__), '..'))
# Loop over each directory in order of preference.
### PHP
-PHP scripts will be executed from the web directory of an instance. They will be executed as any other CLI script.
\ No newline at end of file
+PHP scripts will be executed from the web directory of an instance. They will be executed as any other CLI script.
+
+Directories
+-----------
+
+The scripts are looked for in each of the following directories until found:
+- <Setting dirs.moodle>/scripts
+- ~/.moodle-sdk/scripts
+- /etc/moodle-sdk/scripts
+- /path/to/moodle-sdk/scripts
\ No newline at end of file