Welcome to mirror list, hosted at ThFree Co, Russian Federation.

sys.py « Blender « modules « python « intern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f76c0074c1f455d2f814f01d82bb4c1e1df01b47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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()