/[ascend]/trunk/pygtk/test.py
ViewVC logotype

Diff of /trunk/pygtk/test.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1093 by johnpye, Wed Jan 10 00:18:25 2007 UTC revision 1094 by johnpye, Wed Jan 10 00:21:40 2007 UTC
# Line 3  import unittest Line 3  import unittest
3    
4  import os, subprocess,sys  import os, subprocess,sys
5    
6    modelsdir = None
7  if not os.environ.get('ASCENDLIBRARY'):  if not os.environ.get('ASCENDLIBRARY'):
8      os.environ['ASCENDLIBRARY'] = os.path.normpath(os.path.join(sys.path[0],"../models"))      modelsdir = os.path.normpath(os.path.join(sys.path[0],"../models"))
9      print os.environ['ASCENDLIBRARY']      print "models dir = %s",modelsdir
10    
11  import platform  import platform
12  if platform.system() != "Windows":  if platform.system() != "Windows":
# Line 26  class Ascend(unittest.TestCase): Line 27  class Ascend(unittest.TestCase):
27    
28      def setUp(self):      def setUp(self):
29          import ascpy          import ascpy
30          self.L = ascpy.Library()          self.L = ascpy.Library(modelsdir)
31            
32      def tearDown(self):      def tearDown(self):
33          self.L.clear()          self.L.clear()

Legend:
Removed from v.1093  
changed lines
  Added in v.1094

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22