title: html/template: pattern matches no files even with absolute path
body: <p>I have a global constant like this.</p>
  
  <pre><code>const TemplateDir string = "/home/joe/go/src/proj/template/"
  </code></pre>
  
  <p>Then, later in my code I call this.</p>
  
  <pre><code>template.ParseGlob(filepath.Join(TemplateDir, "*.tmpl"))
  </code></pre>
  
  <p>I know that <code>filepath.Join(TemplateDir, "*.tmpl")</code> produces <code>/home/joe/go/src/proj/template/*.tmpl</code>.</p>
  
  <p>This all compiles fine. However, when I try to run my executable from a directory outside of <code>proj</code>, I get this error.</p>
  
  <pre><code>html/template: pattern matches no files: `template/*.tmpl`
  </code></pre>
  
  <p>I'm not sure why I'm getting that error if I passed in an absolute path. Any ideas?</p>
  
  <p><strong>Update</strong>
  I forgot to mention that I'm calling my program through the $PATH variable. That is, I'm not executing <code>./proj</code> anywhere. I'm just calling <code>proj</code> from my home directory.</p>