Skip to content

File accesses need to be more contained #8

Description

@wyldckat

For example, even when we run with this command:

pyFoamPlotWatcher --silent --write-files --hardcopy --solver-not-running-anymore log.simpleFoam

it's possible that two types of files get locked up:

  1. The log.simpleFoam.analyzed can get locked up because a previous run of the script did not terminate with success (for whatever reason) and Python.exe might still be running.
  2. The tmp*.gnuplot file might get locked up in:
_NewFile.__del__ of  <PyFoam.ThirdParty.Gnuplot.PlotItems._NewFileItem>

Therefore, we need some way of having a more... contained access methodology for files, if at all possible, i.e. open them only once, since on Windows it's harder to make the file shareable.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions