os.path: abspath() should affect only relative paths.

pull/35/head
Paul Sokolovsky 2015-06-29 00:05:01 +03:00
rodzic 9280aa4935
commit 863538b44f
3 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -1,4 +1,4 @@
srctype = micropython-lib
type = package
version = 0.1
version = 0.1.1
author = Paul Sokolovsky

Wyświetl plik

@ -8,7 +8,9 @@ def normpath(s):
return s
def abspath(s):
return os.getcwd() + "/" + s
if s[0] != "/":
return os.getcwd() + "/" + s
return s
def join(*args):
# TODO: this is non-compliant

Wyświetl plik

@ -6,7 +6,7 @@ from setuptools import setup
setup(name='micropython-os.path',
version='0.1',
version='0.1.1',
description='os.path 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',