initial import (Boeing r1752, NRL r878)
This commit is contained in:
commit
f8f46d28be
394 changed files with 99738 additions and 0 deletions
27
daemon/core/pycore.py
Normal file
27
daemon/core/pycore.py
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Copyright (c)2010-2012 the Boeing Company.
|
||||
# See the LICENSE file included in this distribution.
|
||||
|
||||
"""
|
||||
This is a convenience module that imports a set of platform-dependent
|
||||
defaults.
|
||||
"""
|
||||
|
||||
from misc.utils import ensurepath
|
||||
ensurepath(["/sbin", "/bin", "/usr/sbin", "/usr/bin"])
|
||||
del ensurepath
|
||||
|
||||
from session import Session
|
||||
|
||||
import os
|
||||
|
||||
if os.uname()[0] == "Linux":
|
||||
from netns import nodes
|
||||
try:
|
||||
from xen import xen
|
||||
except ImportError:
|
||||
#print "Xen support disabled."
|
||||
pass
|
||||
elif os.uname()[0] == "FreeBSD":
|
||||
from bsd import nodes
|
||||
from phys import pnodes
|
||||
del os
|
Loading…
Add table
Add a link
Reference in a new issue