Browse files

Fix relative path for postprocess script

  • Loading branch information...
1 parent b19c437 commit fb97dd3e392dec7ef34392199e06ab5ec72ceb7e av_jui committed Oct 16, 2012
Showing with 4 additions and 2 deletions.
  1. +1 −0 Gamez.py
  2. +1 −1 gamez/GameTasks.py
  3. +2 −1 gamez/__init__.py
View
1 Gamez.py
@@ -24,6 +24,7 @@
import gamez
app_path = os.path.dirname(os.path.abspath(__file__))
+gamez.PROGDIR = app_path
class RunApp():
View
2 gamez/GameTasks.py
@@ -365,7 +365,7 @@ def CheckSabDownloadPath(self,sabnzbdApi,sabnzbdHost,sabnzbdPort):
def CheckIfPostProcessExistsInSab(self,sabnzbdApi,sabnzbdHost,sabnzbdPort):
- path = os.path.abspath("postprocess")
+ path = os.path.join(gamez.PROGDIR, "postprocess")
srcPath = os.path.join(path,"gamezPostProcess.py")
url = "http://" + sabnzbdHost + ":" + sabnzbdPort + "/sabnzbd/api?mode=get_config&apikey=" + sabnzbdApi + "&section=misc&keyword=script_dir"
try:
View
3 gamez/__init__.py
@@ -1,2 +1,3 @@
DATADIR = ""
-CONFIG_PATH = ""
+CONFIG_PATH = ""
+PROGDIR = ""

0 comments on commit fb97dd3

Please sign in to comment.