aboutsummaryrefslogtreecommitdiff
path: root/cad/vipec/files/patch-Setup.cpp
blob: 419b8cf253bbcba729ae385b9643beb4e83521f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- Setup.cpp.orig	Fri Oct  3 09:31:11 2003
+++ Setup.cpp	Fri Aug 20 23:49:30 2004
@@ -163,8 +163,17 @@
   vipecHome_ = QString(getenv("VIPECHOME"));
   if ( vipecHome_.isEmpty() )
     {
-      vipecHome_ = dir.absPath();
-      Logger::warning("VIPECHOME not set, assuming " + vipecHome_);
+#ifdef VIPECHOME
+      vipecHome_ = QString(VIPECHOME);
+      if (vipecHome_.isEmpty())
+        {
+	  vipecHome_ = dir.absPath();
+	  Logger::warning("VIPECHOME not set, assuming " + vipecHome_);
+        }
+#else
+	vipecHome_ = dir.absPath();
+	Logger::warning("VIPECHOME not set, assuming " + vipecHome_);
+#endif
     }
   helpFilename_ = vipecHome_ + "/help/index.html";
   configFilename_ = vipecHome_ + "/vipec.cfg";