Skip to content

Commit

Permalink
updated test paths
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Nov 13, 2016
1 parent 5eee5db commit 70cf132
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions clam/common/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@

VERSION = '2.1.6'

#dirs for services shipped with CLAM itself
CONFIGDIR = os.path.abspath(os.path.dirname(__file__) + '/../config/')
WRAPPERDIR = os.path.abspath(os.path.dirname(__file__) + '/../wrappers/')

#clam.common.formats is deliberately imported _at the end_

DISALLOWINSHELLSAFE = ('|','&',';','!','<','>','{','}','`','\n','\r','\t')
Expand Down
2 changes: 1 addition & 1 deletion clam/config/authtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
# (set to "anonymous" if there is none)
# $PARAMETERS - List of chosen parameters, using the specified flags
#
COMMAND = sys.path[0] + "/wrappers/textstats.py $DATAFILE $STATUSFILE $OUTPUTDIRECTORY"
COMMAND = WRAPPERDIR + "/textstats.py $DATAFILE $STATUSFILE $OUTPUTDIRECTORY"

# ======== PARAMETER DEFINITIONS ===========

Expand Down
2 changes: 1 addition & 1 deletion clam/config/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
# (set to "anonymous" if there is none)
# $PARAMETERS - List of chosen parameters, using the specified flags
#
COMMAND = sys.path[0] + "/wrappers/testwrapper.py $DATAFILE $STATUSFILE $OUTPUTDIRECTORY $PARAMETERS > $OUTPUTDIRECTORY/log"
COMMAND = WRAPPERDIR + "/testwrapper.py $DATAFILE $STATUSFILE $OUTPUTDIRECTORY $PARAMETERS > $OUTPUTDIRECTORY/log"

#The parameters are subdivided into several group. In the form of a list of (groupname, parameters) tuples. The parameters are a list of instances from common/parameters.py
PARAMETERS = [
Expand Down

0 comments on commit 70cf132

Please sign in to comment.