Skip to content

Commit

Permalink
FEM: utils and run, get rid of circle import
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Sep 10, 2019
1 parent e4e6ba6 commit 818c3df
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
7 changes: 0 additions & 7 deletions src/Mod/Fem/femsolver/run.py
Expand Up @@ -457,11 +457,4 @@ def _partOfModel(self, obj):
return False


class MustSaveError(Exception):
pass


class DirectoryDoesNotExistError(Exception):
pass

## @}
13 changes: 10 additions & 3 deletions src/Mod/Fem/femtools/femutils.py
Expand Up @@ -31,7 +31,6 @@
import sys

import FreeCAD
from femsolver import run
from femsolver import settings
from femsolver.run import _getUniquePath as getUniquePath
if FreeCAD.GuiUp:
Expand Down Expand Up @@ -197,7 +196,7 @@ def get_beside_base(obj):
"Can't start Solver or Mesh creation besides FC file.",
error_message
)
# raise run.MustSaveError()
# raise MustSaveError()
return get_temp_dir()
else:
return os.path.splitext(fcstdPath)[0]
Expand All @@ -214,7 +213,7 @@ def get_custom_base(solver):
"Can't start Solver or Mesh creation.",
error_message
)
raise run.DirectoryDoesNotExistError("Invalid path")
raise DirectoryDoesNotExistError("Invalid path")
return path


Expand All @@ -228,6 +227,14 @@ def check_working_dir(wdir):
return False


class MustSaveError(Exception):
pass


class DirectoryDoesNotExistError(Exception):
pass


# ************************************************************************************************
# other
def get_part_to_mesh(mesh_obj):
Expand Down

0 comments on commit 818c3df

Please sign in to comment.