Skip to content
Browse files

[MOD] Move bash files into their own folder

  • Loading branch information...
1 parent 4147c92 commit 56c41f463964a77837ca32246a2c690122e9667c @nathanrosspowell committed Jan 24, 2012
View
0 testing/cleanup.bash → testing/bash/cleanup.bash
File renamed without changes.
View
0 testing/cpp.bash → testing/bash/cpp.bash
File renamed without changes.
View
0 testing/haskell.bash → testing/bash/haskell.bash
File renamed without changes.
View
0 testing/python.bash → testing/bash/python.bash
File renamed without changes.
View
8 testing/run.py
@@ -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
@@ -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 ):

0 comments on commit 56c41f4

Please sign in to comment.
Something went wrong with that request. Please try again.