title: CherryPy can't seem to find CSS script (static or absolute paths)
body: <p>i'm using the cherryPy framework to serve my site, but it cannot seem to find my css script with either the static path or the absolute path. The css script works fine if i just go to the index.tmpl file via the browser, but when i request it via cherrypy it does not use the css script.</p>
  
  <p><strong>root directory structure:</strong></p>
  
  <pre><code>site.py
  template/index.tmpl
  static/css/main.css
  </code></pre>
  
  <p><strong>site.py</strong></p>
  
  <pre><code>import sys
  import cherrypy
  import os
  from Cheetah.Template import Template
  
  class Root:
      @cherrypy.expose
      def index(self):
          htmlTemplate = Template(file='templates/index.tmpl')
          htmlTemplate.css_scripts=['css/main.css']
          return str(htmlTemplate)
  
  
  
  # On Startup
  current_dir = os.path.dirname(os.path.abspath(__file__)) + os.path.sep
  
  cherrypy.config.update({
      'environment': 'production',
      'log.screen': True,
      'server.socket_host': '127.0.0.1',
      'server.socket_port': 2000,
      'engine.autoreload_on': True,
      '/':{
          'tools.staticdir.root' : current_dir,
          },
      '/static':{
          'tools.staticdir.on' : True,
          'tools.staticdir.dir' : "static",
      },
  })
  
  cherrypy.quickstart(Root())
  </code></pre>
  
  <p><strong>template/index.tmpl</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      #for $script in $css_scripts:
          &lt;link rel="stylesheet" href="$script" type="text/css" /&gt;
      #end for
          &lt;link rel="stylesheet" href="C:/ABSOLUTE/PATH/main.css" type="text/css" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
          &lt;! MY HTML CODE IS HERE&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>what am i doing wrong?</p>
  
  <p><strong>EDIT</strong> 
  <br/>
  I have tried with <code>static/css/main.css</code> as the static path
  <br/>
  I have also tried relative paths, relative to site.py and relative to index.tmpl
  <br/>
  <br/>
  This is the error that i get:</p>
  
  <pre><code>GET http://localhost:2000/static/css/main.css 404 (Not Found)  
  </code></pre>