From 10c51e681a7a6f153e197daf3e0585b51789a248 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 11 Jun 2014 00:09:23 +0300 Subject: [PATCH] os: Add name, environ vars (last - as dummy). --- os/metadata.txt | 2 +- os/os/__init__.py | 3 +++ os/setup.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/os/metadata.txt b/os/metadata.txt index bef75b55..26f9b09f 100644 --- a/os/metadata.txt +++ b/os/metadata.txt @@ -1,4 +1,4 @@ srctype = micropython-lib type = package -version = 0.1 +version = 0.1.1 author = Paul Sokolovsky diff --git a/os/os/__init__.py b/os/os/__init__.py index f5440b3c..23311df9 100644 --- a/os/os/__init__.py +++ b/os/os/__init__.py @@ -35,9 +35,12 @@ F_OK = const(0) error = OSError +name = "posix" sep = "/" curdir = "." pardir = ".." +environ = {"WARNING": "NOT_IMPLEMENTED"} + def check_error(ret): if ret == -1: diff --git a/os/setup.py b/os/setup.py index 18bd4104..9e2782ce 100644 --- a/os/setup.py +++ b/os/setup.py @@ -6,7 +6,7 @@ from setuptools import setup setup(name='micropython-os', - version='0.1', + version='0.1.1', description='os module for MicroPython', long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", url='https://github.com/micropython/micropython/issues/405',