From d7c2e6a981c410eb5dd7d5bc3506b09b47721606 Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Thu, 14 Mar 2013 02:18:44 -0700 Subject: [PATCH] absolute path for autoProcess folder --- nzbToGamez.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nzbToGamez.py b/nzbToGamez.py index 5f9e57d3..d37d1f51 100755 --- a/nzbToGamez.py +++ b/nzbToGamez.py @@ -1,7 +1,8 @@ #!/usr/bin/env python +import os import sys -sys.path.insert(0, 'autoProcess/') # add this folder to path as this allows out-of-sight files to be called. +sys.path.insert(0, os.path.join(os.path.dirname(sys.argv[0]),'autoProcess/')) import logging import migratecfg