forked from bartvdbraak/blender
6b65e39a44
- switching the define on in buildsystems (NaN, auto and msvc are done) - again import _Blender, which is the C module, from the Python modules
21 lines
350 B
Python
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()
|
|
|