summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/fetch_cals.py (renamed from fetch_cals.py)0
-rw-r--r--bin/import_cals.py (renamed from import_cals.py)1
-rw-r--r--bin/init_db.py (renamed from init_db.py)0
-rwxr-xr-xbin/pyrun.sh6
-rw-r--r--conf/reddit-import.json2
5 files changed, 8 insertions, 1 deletions
diff --git a/fetch_cals.py b/bin/fetch_cals.py
index 13c4eca..13c4eca 100644
--- a/fetch_cals.py
+++ b/bin/fetch_cals.py
diff --git a/import_cals.py b/bin/import_cals.py
index 09c3272..34e607d 100644
--- a/import_cals.py
+++ b/bin/import_cals.py
@@ -11,6 +11,7 @@ from rcal.model import Calendar, Category
CONFIG = json.load(open(
os.path.join(
os.path.dirname(os.path.realpath(__file__)),
+ '..',
'conf',
'reddit-import.json'),
'r'))
diff --git a/init_db.py b/bin/init_db.py
index 7d48e80..7d48e80 100644
--- a/init_db.py
+++ b/bin/init_db.py
diff --git a/bin/pyrun.sh b/bin/pyrun.sh
new file mode 100755
index 0000000..188a0eb
--- /dev/null
+++ b/bin/pyrun.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+DIR=$(dirname $0)
+SCRIPT=$(echo $1 | sed 's/\.py\$//')
+shift
+export PYTHONPATH=$DIR/..
+python $DIR/$SCRIPT.py $@
diff --git a/conf/reddit-import.json b/conf/reddit-import.json
index 4101f80..f34d522 100644
--- a/conf/reddit-import.json
+++ b/conf/reddit-import.json
@@ -1,5 +1,5 @@
{
- "cache": "cache/list.md",
+ "cache": "../cache/list.md",
"cache_time": 86400,
"reddit_url": "https://www.reddit.com/r/MotorsportsCalendar/comments/45uv93/2016_calendar_list.json",
"user_agent": "/u/emkael"