forked from bartvdbraak/blender
c95d631b83
broken, but it should give 0 errors when building. Michel
21 lines
351 B
Python
21 lines
351 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()
|
|
|