Skip to content

Commit

Permalink
[MOD] Move bash files into their own folder
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanrosspowell committed Jan 24, 2012
1 parent 4147c92 commit 56c41f4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 5 additions & 3 deletions testing/run.py
Expand Up @@ -98,13 +98,14 @@ def run( self ):
else:
print "Error", status, output, self.answer, self.language
args = "%s %s" % os.path.split( self.problemPath )
os.system( self.cleanUp % ( self.folders.path, args ) )
os.system( self.cleanUp % ( os.path.join( self.folders.path, "bash" ), args ) )

class ExecuteCpp( Execute ):
def createCmd( self ):
folder, fileName = os.path.split( self.problemPath )
args = "%s %s" % ( folder, self.problemPath )
bash = os.path.join( self.folders.path, self.language )
bashFolder = os.path.join( self.folders.path, "bash" )
bash = os.path.join( bashFolder, self.language )
self.cmd = self.bashFormat % ( bash, args )

ExecutePython = ExecuteCpp
Expand All @@ -113,7 +114,8 @@ class ExecuteHaskell( Execute ):
def createCmd( self ):
folder, fileName = os.path.split( self.problemPath )
args = "%s %s %.4d.o" % ( folder, self.problemPath, self.problemNumber )
bash = os.path.join( self.folders.path, self.language )
bashFolder = os.path.join( self.folders.path, "bash" )
bash = os.path.join( bashFolder, self.language )
self.cmd = self.bashFormat % ( bash, args )

def createExecInstance( folders, **kwargs ):
Expand Down

0 comments on commit 56c41f4

Please sign in to comment.