Skip to content

Commit

Permalink
Fix baked-in path in playground to resolve at runtime (#12948)
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Jan 15, 2023
1 parent bf5ffe3 commit 2b346db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/crystal/tools/playground/server.cr
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ module Crystal::Playground
end

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

Expand Down

0 comments on commit 2b346db

Please sign in to comment.