Skip to content

Commit

Permalink
Fix issue with loading DSL configs by relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
dag committed Apr 21, 2008
1 parent 85eecb5 commit a83bc43
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/amazing/config/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ class Dsl

def initialize(config=nil, &block)
@awesome_statusbars = []
@relative_path = File.dirname(config)
import(config)
if config
config = File.expand_path(config)
@relative_path = File.dirname(config)
import(config)
end
import(&block)
end

Expand Down

0 comments on commit a83bc43

Please sign in to comment.