Use path.join instead of string concatenation.

This commit is contained in:
XinGang Li 2013-02-23 17:35:31 +08:00
parent 10d7a7591a
commit 666f27787b

View file

@ -72,8 +72,8 @@ def main():
argv.append('-v')
argv.append('-v')
dirname = os.path.dirname(sys.argv[0])
argv.extend(['-w', dirname+'/python_tests'])
dirname = os.path.dirname(sys.argv[0])
argv.extend(['-w', os.path.join(dirname,'python_tests')])
if not nose.run(argv=argv, plugins=[TodoPlugin(), Doctest()]):
sys.exit(1)