old_contents: # Little helper to allow python modules in current jasylibrarys path
  import sys, os.path, inspect
  filename = inspect.getframeinfo(inspect.currentframe()).filename
  path = os.path.dirname(os.path.abspath(filename))
  sys.path.append(path)
  
  import konstrukteur.Konstrukteur
  import jasy.asset.Manager
  
  
  @share
  def build(profile, regenerate = False):
  	""" Build static website """
  	
  	def getPartUrl(part, type):
  		folder = ""
  		if type == "css":
  			folder = profile.getCssFolder()
  		
  		outputPath = os.path.relpath(os.path.join(profile.getDestinationPath(), folder), profile.getWorkingPath())
  		filename = profile.expandFileName("%s/%s-{{id}}.%s" % (outputPath, part, type))
  
  		return filename
  
  	profile.addCommand("part.url", getPartUrl, "url")
  
  	for permutation in profile.permutate():
  		konstrukteur.Konstrukteur.build(regenerate, profile)
  
new_contents: # Little helper to allow python modules in current jasylibrarys path
  import sys, os.path, inspect
  filename = inspect.getframeinfo(inspect.currentframe()).filename
  path = os.path.dirname(os.path.abspath(filename))
  sys.path.append(path)
  
  import konstrukteur.Konstrukteur
  import jasy.asset.Manager
  
  
  @share
  def build(profile, regenerate = False):
  	""" Build static website """
  	
  	def getPartUrl(part, type):
  		folder = ""
  		if type == "css":
  			if hasattr(profile, "getCssFolder"):
  				# Old jasy < 1.5-beta4
  				folder = profile.getCssFolder()
  			else:
  				# New jasy >= 1.5-beta4
  				folder = profile.getCssOutputFolder()
  		
  		outputPath = os.path.relpath(os.path.join(profile.getDestinationPath(), folder), profile.getWorkingPath())
  		filename = profile.expandFileName("%s/%s-{{id}}.%s" % (outputPath, part, type))
  
  		return filename
  
  	profile.addCommand("part.url", getPartUrl, "url")
  
  	for permutation in profile.permutate():
  		konstrukteur.Konstrukteur.build(regenerate, profile)
  
subject: Fix detecting css output folder in different jasy versions