diff options
Diffstat (limited to 'intern/python/modules/Blender/sys.py')
-rw-r--r-- | intern/python/modules/Blender/sys.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/intern/python/modules/Blender/sys.py b/intern/python/modules/Blender/sys.py new file mode 100644 index 00000000000..f76c0074c1f --- /dev/null +++ b/intern/python/modules/Blender/sys.py @@ -0,0 +1,20 @@ +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() + |