diff options
author | Fahim | 2016-02-17 17:00:35 +0530 |
---|---|---|
committer | Fahim | 2016-02-17 17:00:35 +0530 |
commit | d634304de8022c499b1a4a23c85aa5f124539d93 (patch) | |
tree | 9ec07da28a569b4ebc54c69eba778809457f451d /src/projManagement/Validation.py | |
parent | 9b6b022edb89e14fa83c3c1d6ebf0a9f96500b1a (diff) | |
parent | 8a6f29decb7793e678aa8492f4f8d899087f2f68 (diff) | |
download | eSim-d634304de8022c499b1a4a23c85aa5f124539d93.tar.gz eSim-d634304de8022c499b1a4a23c85aa5f124539d93.tar.bz2 eSim-d634304de8022c499b1a4a23c85aa5f124539d93.zip |
Merge branch 'develop'
Conflicts:
kicadSchematicLibrary/kicad.pro
src/ngspicetoModelica/__init__.py
Diffstat (limited to 'src/projManagement/Validation.py')
-rw-r--r-- | src/projManagement/Validation.py | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/projManagement/Validation.py b/src/projManagement/Validation.py index ac0473af..bafcbe08 100644 --- a/src/projManagement/Validation.py +++ b/src/projManagement/Validation.py @@ -18,6 +18,7 @@ #=============================================================================== import os import re +import distutils.spawn class Validation: @@ -110,4 +111,23 @@ class Validation: else: return "True" else: - return "DIREC"
\ No newline at end of file + return "DIREC" + + def validateCirOut(self,projDir): + """ + This function checks if ".cir.out" file is present. + """ + projName = os.path.basename(str(projDir)) + lookCirOut = os.path.join(str(projDir),projName+".cir.out") + #Check existence of project + if os.path.exists(lookCirOut): + return True + else: + return False + + def validateTool(self,toolName): + """ + This function check if tool is present in the system + """ + return distutils.spawn.find_executable(toolName) is not None +
\ No newline at end of file |