summaryrefslogtreecommitdiff
path: root/src/projManagement
diff options
context:
space:
mode:
authorFahim2015-10-01 14:41:09 +0530
committerFahim2015-10-01 14:41:09 +0530
commit61ceb24d4b98e4aa719baddcfaedbcdee239f867 (patch)
treefe39c59a612d2f3a50bc879b9b854bc1a80bda0d /src/projManagement
parent193d284f377ccf963bbd762bdb03f3daae2fa1af (diff)
downloadeSim-61ceb24d4b98e4aa719baddcfaedbcdee239f867.tar.gz
eSim-61ceb24d4b98e4aa719baddcfaedbcdee239f867.tar.bz2
eSim-61ceb24d4b98e4aa719baddcfaedbcdee239f867.zip
Subject: Changes in Application.py,Validation.py and
NgspicetoModelica.py Description: In Application.py rewrite the error message for openModelica if it is not installed.Simillarly for nghdl. In Validation.py a new function ValidateTool is added which will check if any tool like openModelica or nghdl is installed.
Diffstat (limited to 'src/projManagement')
-rw-r--r--src/projManagement/Validation.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/projManagement/Validation.py b/src/projManagement/Validation.py
index 857f1987..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:
@@ -123,4 +124,10 @@ class Validation:
return True
else:
return False
- \ No newline at end of file
+
+ 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