Missing "output" folder in demos

Issue #1 resolved
Former user created an issue

command: python -m ocellaris dam_break.inp

Traceback (most recent call last): File "$/.hashdist/bld/profile/cszix6vqsttn/lib/python2.7/runpy.py", line 162, in _run_module_as_main "main", fname, loader, pkg_name) File "$/.hashdist/bld/profile/cszix6vqsttn/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "$/ocellaris/ocellaris/main.py", line 120, in <module> main(args.inputfile, args.set_input) File "$/ocellaris/ocellaris/main.py", line 21, in main sim.log.setup() File "$/ocellaris/ocellaris/simulation/log.py", line 80, in setup self.log_file = open(self.log_file_name, 'wt') IOError: [Errno 2] No such file or directory: 'output/dam_break_test.log'

workaround: Add a folder named "output" manually

fix: add a createIfNotExist to log.py:80

Comments (3)

  1. Log in to comment