From 3a26089484862113a3b3779522c49972ed314f98 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Wed, 5 Dec 2012 15:34:23 +0800 Subject: [PATCH] Updated directories for scripts/ and readme file --- lib/moodle.py | 1 + scripts/README.md | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/moodle.py b/lib/moodle.py index ade1f7c..4ccb1a2 100644 --- a/lib/moodle.py +++ b/lib/moodle.py @@ -428,6 +428,7 @@ class Moodle(object): 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. diff --git a/scripts/README.md b/scripts/README.md index 30aac47..921de28 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -10,4 +10,13 @@ Formats ### 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: +- /scripts +- ~/.moodle-sdk/scripts +- /etc/moodle-sdk/scripts +- /path/to/moodle-sdk/scripts \ No newline at end of file -- 2.11.0