def makePretty(self, lastSlash=True, backward=False):
		slashChr = '/'
		if backward:
			slashChr = '\\'
		
		# check for initial double forward slash
		network = False
		if self[:2] == '//' or self[:2] == '\\\\':
			network = True
		
		# convert to forward or backward
		for unused in range(0, 4):
			# Removal of double forward slashes
			self = self.replace('//', slashChr)
			self = self.replace('\\', slashChr)
			self = self.replace('/', slashChr)
				
		# check tail if dir
		if os.path.isdir(self):
			if self[-1:] == '/':
				if not lastSlash:
					self = self[:-1]
			else:
				if lastSlash:
					self = self + slashChr
		
		# reinstate initial double forward slash
		if network:
			if backward:
				self = '\\%s' % self
			else:
				self = '/%s' % self
				
		return Path(self)
decorator to _sympify `arg` argument for function `func`
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/common/fileIO/pcsPath.py/Path.makePretty--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/core/decorators.py/__sympifyit