Skip to content

Commit 2b346db

Browse files
Fix baked-in path in playground to resolve at runtime (#12948)
1 parent bf5ffe3 commit 2b346db

File tree

1 file changed

+1
-1
lines changed
  • src/compiler/crystal/tools/playground

1 file changed

+1
-1
lines changed

src/compiler/crystal/tools/playground/server.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ module Crystal::Playground
449449
end
450450

451451
def start
452-
playground_dir = File.dirname(__FILE__)
452+
playground_dir = File.dirname(CrystalPath.new.find("compiler/crystal/tools/playground/server.cr").not_nil![0])
453453
views_dir = File.join(playground_dir, "views")
454454
public_dir = File.join(playground_dir, "public")
455455

0 commit comments

Comments
 (0)