#!/usr/bin/python # Copyright (c) 2005 by Mark T. Holder, Florida State University. (see end of file) import sys, os import PIPRes.util.cipres from PIPRes.util._cipres_properties import CipresProperties, FakeProps testFilesDir = os.path.expandvars(os.path.join('$PIPRES_ROOT','test', 'files')) testScratchDir = os.path.join(testFilesDir, 'temp') if not os.path.exists(testScratchDir): sys.exit('$PIPRES_ROOT is not set correctly, the %s directory was not found.' % testScratchDir) exampleReg = os.path.expandvars(os.path.join('$PIPRES_ROOT','test', 'files', 'exampleRegistry.xml')) fakeProperties = FakeProps() fakeProperties.set('cipres.registry.ior', 'corbaloc::127.0.0.1:5001/CipresRegistry') PIPRes.util.cipres._cipresProperties = fakeProperties # This file is part of the PIPRes library # The PIPRes library is free software; you can redistribute it # and/or modify it under the terms of the GNU Lesser General # Public License as published by the Free Software Foundation; # either version 2.1 of the License, or (at your option) any later # version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free # Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, # MA 02111-1307, USA