We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf5ffe3 commit 2b346dbCopy full SHA for 2b346db
src/compiler/crystal/tools/playground/server.cr
@@ -449,7 +449,7 @@ module Crystal::Playground
449
end
450
451
def start
452
- playground_dir = File.dirname(__FILE__)
+ playground_dir = File.dirname(CrystalPath.new.find("compiler/crystal/tools/playground/server.cr").not_nil![0])
453
views_dir = File.join(playground_dir, "views")
454
public_dir = File.join(playground_dir, "public")
455
0 commit comments