Preparing for #1250

This commit is contained in:
Miroslav Stampar
2016-08-02 00:17:59 +02:00
parent 5ccb73a1ee
commit acfe788c95
6 changed files with 14 additions and 17 deletions

View File

@@ -1180,11 +1180,13 @@ def cleanQuery(query):
return retVal
def setPaths():
def setPaths(rootPath):
"""
Sets absolute paths for project directories and files
"""
paths.SQLMAP_ROOT_PATH = rootPath
# sqlmap paths
paths.SQLMAP_EXTRAS_PATH = os.path.join(paths.SQLMAP_ROOT_PATH, "extra")
paths.SQLMAP_PROCS_PATH = os.path.join(paths.SQLMAP_ROOT_PATH, "procs")