Initial revision
[blender.git] / intern / python / modules / Blender / sys.py
1 from _Blender.sys import *
2
3 sep = dirsep # path separator ('/' or '\')
4
5 class Path:
6         def dirname(self, name):
7                 return dirname(name)
8         def join(self, a, *p):
9                 path = a
10                 for b in p:
11                         if b[:1] == dirsep:
12                                 path = b
13                         elif path == '' or path[-1:] == dirsep:
14                                 path = path + b
15                         else:
16                                 path = path + dirsep + b
17                 return path
18         
19 path = Path()
20