Commit e57c8cc385844da2cf26cb47d7f3d5575f616ed5

Authored by Jürgen Knödlseder
1 parent 6205af2a

Put pfiles directory in tutorials result subdirectory

This avoids any conflicts with the pfiles directory that will be created during unit testing.
Showing 1 changed file with 3 additions and 3 deletions
test/tutorials.py
@@ -471,14 +471,14 @@ if __name__ == '__main__': @@ -471,14 +471,14 @@ if __name__ == '__main__':
471 # Append test suite to container 471 # Append test suite to container
472 suites.append(suite_tutorials) 472 suites.append(suite_tutorials)
473 473
474 - # Create pfiles directory 474 + # Create tutorials/pfiles directory
475 try: 475 try:
476 - os.mkdir('pfiles') 476 + os.makedirs('tutorials/pfiles')
477 except: 477 except:
478 pass 478 pass
479 479
480 # Set PFILES environment variable 480 # Set PFILES environment variable
481 - os.environ['PFILES'] = os.path.abspath('pfiles') 481 + os.environ['PFILES'] = os.path.abspath('tutorials/pfiles')
482 482
483 # Get current working directory 483 # Get current working directory
484 cwd = os.getcwd() 484 cwd = os.getcwd()