Trees | Indices | Help |
---|
|
1 # -*- Mode: Python -*- 2 # vi:si:et:sw=4:sts=4:ts=4 3 4 # Flumotion - a streaming media server 5 # Copyright (C) 2004,2005,2006,2007,2008,2009 Fluendo, S.L. 6 # Copyright (C) 2010,2011 Flumotion Services, S.A. 7 # All rights reserved. 8 # 9 # This file may be distributed and/or modified under the terms of 10 # the GNU Lesser General Public License version 2.1 as published by 11 # the Free Software Foundation. 12 # This file is distributed without any warranty; without even the implied 13 # warranty of merchantability or fitness for a particular purpose. 14 # See "LICENSE.LGPL" in the source distribution for more information. 15 # 16 # Headers in this file shall remain intact. 17 18 19 import os 20 21 CORTADO_PREFIX = "" 22 2325 directories = ['/usr/local', '/usr'] 26 prefix = CORTADO_PREFIX[:] 27 if prefix: 28 if prefix.endswith('/'): 29 prefix = prefix[1:] 30 directories.insert(0, CORTADO_PREFIX) 31 for directory in directories: 32 # Debian/Ubuntu 33 name = os.path.join(directory, 'share', 'cortado', 'cortado-ovt.jar') 34 if os.path.exists(name): 35 return name 36 # OpenSuSE 37 name = os.path.join(directory, 'share', 38 'java', 'cortado', 'cortado-ovt.jar') 39 if os.path.exists(name): 40 return name 41 # ant install_applet 42 for version in ['0.2.2', '0.2.1', '0.2.0']: 43 name = os.path.join( 44 directory, 'share', 'cortado', 45 'cortado-ovt-stripped-%s.1.jar' % (version, )) 46 if os.path.exists(name): 47 return name 48 return None49
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Aug 13 06:17:28 2013 | http://epydoc.sourceforge.net |