blender/intern/python/modules/Blender/sys.py
Wouter van Heyst 6b65e39a44 Revert to the FUTURE_PYTHON_API, this means:
- switching the define on in buildsystems (NaN, auto and msvc are done)
- again import _Blender, which is the C module, from the Python modules
2003-02-06 03:30:25 +00:00

21 lines
350 B
Python

from _Blender.sys import *
sep = dirsep # path separator ('/' or '\')
class Path:
def dirname(self, name):
return dirname(name)
def join(self, a, *p):
path = a
for b in p:
if b[:1] == dirsep:
path = b
elif path == '' or path[-1:] == dirsep:
path = path + b
else:
path = path + dirsep + b
return path
path = Path()