Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix relative path for postprocess script

  • Loading branch information...
commit fb97dd3e392dec7ef34392199e06ab5ec72ceb7e 1 parent b19c437
av_jui authored
Showing with 4 additions and 2 deletions.
  1. +1 −0  Gamez.py
  2. +1 −1  gamez/GameTasks.py
  3. +2 −1  gamez/__init__.py
1  Gamez.py
View
@@ -24,6 +24,7 @@
import gamez
app_path = os.path.dirname(os.path.abspath(__file__))
+gamez.PROGDIR = app_path
class RunApp():
2  gamez/GameTasks.py
View
@@ -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:
3  gamez/__init__.py
View
@@ -1,2 +1,3 @@
DATADIR = ""
-CONFIG_PATH = ""
+CONFIG_PATH = ""
+PROGDIR = ""
Please sign in to comment.
Something went wrong with that request. Please try again.