ia64/xen-unstable

annotate tools/python/xen/xend/osdep.py @ 11855:b75fbced2353

[SOLARIS] The hotplug scripts live in a different place on Solaris.

Signed-off-by: John Levon <john.levon@sun.com>
author kfraser@localhost.localdomain
date Tue Oct 17 18:28:27 2006 +0100 (2006-10-17)
parents
children a682d1be3f95
rev   line source
kfraser@11855 1 #!/usr/bin/env python
kfraser@11855 2 #
kfraser@11855 3 # This library is free software; you can redistribute it and/or
kfraser@11855 4 # modify it under the terms of version 2.1 of the GNU Lesser General Public
kfraser@11855 5 # License as published by the Free Software Foundation.
kfraser@11855 6 #
kfraser@11855 7 # This library is distributed in the hope that it will be useful,
kfraser@11855 8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
kfraser@11855 9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
kfraser@11855 10 # Lesser General Public License for more details.
kfraser@11855 11 #
kfraser@11855 12 # You should have received a copy of the GNU Lesser General Public
kfraser@11855 13 # License along with this library; if not, write to the Free Software
kfraser@11855 14 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
kfraser@11855 15 #
kfraser@11855 16
kfraser@11855 17 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
kfraser@11855 18 # Use is subject to license terms.
kfraser@11855 19
kfraser@11855 20 import os
kfraser@11855 21
kfraser@11855 22 _scripts_dir = {
kfraser@11855 23 "Linux": "/etc/xen/scripts",
kfraser@11855 24 "SunOS": "/usr/lib/xen/scripts",
kfraser@11855 25 }
kfraser@11855 26
kfraser@11855 27 scripts_dir = _scripts_dir.get(os.uname()[0], "/etc/xen/scripts")