Skip to content

Commit

Permalink
Add explicit tmp file
Browse files Browse the repository at this point in the history
  • Loading branch information
jmhorcas committed Nov 7, 2024
1 parent 340c296 commit 8efc9c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flamapy/metamodels/bdd_metamodel/models/bdd_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import stat
import subprocess
import locale
import logging
from platform import system
from pathlib import Path
from typing import Any
Expand Down Expand Up @@ -112,6 +113,7 @@ def run(self, binary: str, *args: Any) -> Any:
@staticmethod
def check_file_existence(filename: str, extension: str = '') -> str:
"""Private auxiliary function that verifies if the input file exists."""
logging.info(f'Checking the existence of the file "{filename}"...')
if not os.path.isfile(filename) and extension:
filename = filename + '.' + extension
if not os.path.isfile(filename):
Expand Down
3 changes: 3 additions & 0 deletions flamapy/metamodels/bdd_metamodel/transformations/fm_to_bdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
from flamapy.metamodels.bdd_metamodel.transformations import SPLOTReader, SPLOTWriter


tempfile.tempdir = '/tmp'


class FmToBDD(ModelToModel):

@staticmethod
Expand Down

0 comments on commit 8efc9c1

Please sign in to comment.