micropython

Changeset

569:72176cb0fe24
2012-07-01 Paul Boddie raw files shortlog changelog graph Added various sys module features.
lib/sys.py (file)
     1.1 --- a/lib/sys.py	Sun Jul 01 23:46:27 2012 +0200
     1.2 +++ b/lib/sys.py	Sun Jul 01 23:52:59 2012 +0200
     1.3 @@ -3,7 +3,7 @@
     1.4  """
     1.5  System functions and objects.
     1.6  
     1.7 -Copyright (C) 2008 Paul Boddie <paul@boddie.org.uk>
     1.8 +Copyright (C) 2008, 2012 Paul Boddie <paul@boddie.org.uk>
     1.9  
    1.10  This program is free software; you can redistribute it and/or modify it under
    1.11  the terms of the GNU General Public License as published by the Free Software
    1.12 @@ -19,8 +19,18 @@
    1.13  this program.  If not, see <http://www.gnu.org/licenses/>.
    1.14  """
    1.15  
    1.16 +# Placeholders for run-time data.
    1.17 +
    1.18  stdin = file()
    1.19  stdout = file()
    1.20  stderr = file()
    1.21  
    1.22 +argv = []
    1.23 +path = []
    1.24 +
    1.25 +# Functions to be implemented natively.
    1.26 +
    1.27 +def exit(status=0):
    1.28 +    pass
    1.29 +
    1.30  # vim: tabstop=4 expandtab shiftwidth=4