Skip to content

Commit

Permalink
Fix relative path for postprocess script
Browse files Browse the repository at this point in the history
  • Loading branch information
av_jui committed Oct 16, 2012
1 parent b19c437 commit fb97dd3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Gamez.py
Expand Up @@ -24,6 +24,7 @@
import gamez

app_path = os.path.dirname(os.path.abspath(__file__))
gamez.PROGDIR = app_path

class RunApp():

Expand Down
2 changes: 1 addition & 1 deletion gamez/GameTasks.py
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion gamez/__init__.py
@@ -1,2 +1,3 @@
DATADIR = ""
CONFIG_PATH = ""
CONFIG_PATH = ""
PROGDIR = ""

0 comments on commit fb97dd3

Please sign in to comment.