aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/golangorg/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/golangorg/server.go b/cmd/golangorg/server.go
index 12008a4f..d81c18b2 100644
--- a/cmd/golangorg/server.go
+++ b/cmd/golangorg/server.go
@@ -78,9 +78,9 @@ func main() {
// which is much faster to access than the simulated file system.
if *contentDir == "" && !runningOnAppEngine {
if fi, err := os.Stat(filepath.Join("..", "..", "_content")); err == nil && fi.IsDir() {
- *contentDir = fi.Name()
+ *contentDir = filepath.Join("..", "..", "_content")
} else if fi, err := os.Stat("_content"); err == nil && fi.IsDir() {
- *contentDir = fi.Name()
+ *contentDir = "_content"
} else {
*contentDir = "" // Fall back to using embedded content.
}