old_contents: import sys
  import pubrunner
  import pubrunner.command_line
  
  def test_countwords():
  	#pubrunner.pubrun('examples/CountWords/',True,True)
  	sys.argv = ['pubrunner', '--defaultsettings', '--test','examples/CountWords/']
  	pubrunner.command_line.main()
  
  def test_textminingcounter():
  	#pubrunner.pubrun('examples/CountWords/',True,True)
  	sys.argv = ['pubrunner', '--defaultsettings', '--test','examples/TextMiningCounter/']
  	pubrunner.command_line.main()
  
new_contents: import sys
  import pubrunner
  import pubrunner.command_line
  
  def test_countwords():
  	parentDir = os.path.dirname(os.path.abspath(__file__))
  	projectPath = os.path.join(parentDir,'examples','CountWords')
  	sys.argv = ['pubrunner', '--defaultsettings', '--test',projectPath]
  	pubrunner.command_line.main()
  
  def test_textminingcounter():
  	parentDir = os.path.dirname(os.path.abspath(__file__))
  	projectPath = os.path.join(parentDir,'examples','TextMiningCount')
  	sys.argv = ['pubrunner', '--defaultsettings', '--test',projectPath]
  	pubrunner.command_line.main()
  
  
subject: Use absolute path for running tests