kopia lustrzana https://github.com/micropython/micropython-lib
os.path: abspath() should affect only relative paths.
rodzic
9280aa4935
commit
863538b44f
|
@ -1,4 +1,4 @@
|
||||||
srctype = micropython-lib
|
srctype = micropython-lib
|
||||||
type = package
|
type = package
|
||||||
version = 0.1
|
version = 0.1.1
|
||||||
author = Paul Sokolovsky
|
author = Paul Sokolovsky
|
||||||
|
|
|
@ -8,7 +8,9 @@ def normpath(s):
|
||||||
return s
|
return s
|
||||||
|
|
||||||
def abspath(s):
|
def abspath(s):
|
||||||
return os.getcwd() + "/" + s
|
if s[0] != "/":
|
||||||
|
return os.getcwd() + "/" + s
|
||||||
|
return s
|
||||||
|
|
||||||
def join(*args):
|
def join(*args):
|
||||||
# TODO: this is non-compliant
|
# TODO: this is non-compliant
|
||||||
|
|
|
@ -6,7 +6,7 @@ from setuptools import setup
|
||||||
|
|
||||||
|
|
||||||
setup(name='micropython-os.path',
|
setup(name='micropython-os.path',
|
||||||
version='0.1',
|
version='0.1.1',
|
||||||
description='os.path module for MicroPython',
|
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.",
|
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',
|
url='https://github.com/micropython/micropython/issues/405',
|
||||||
|
|
Ładowanie…
Reference in New Issue