• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Status: stub, just enough to make tests work.
2#
3# Named os_j to avoid conflicts with standard 'os'. See
4# project.py:import for special-casing.
5#
6# Copyright 2001, 2002, 2003, 2005 Dave Abrahams
7# Copyright 2006 Rene Rivera
8# Copyright 2003, 2005 Vladimir Prus
9# Distributed under the Boost Software License, Version 1.0.
10# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
11import os
12
13import bjam
14
15__OS = bjam.call("peek", [], "OS")[0]
16
17# Return Jam's name of OS to prevent existing code from burning
18# when faced with Python naming
19def name():
20    return __OS
21
22
23def environ(keys):
24    return [os.environ[key] for key in keys if key in os.environ]
25