Skip to content

Commit

Permalink
Replaced ~/.oz with ~/.oz/$OZVERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
duchier committed Mar 6, 2004
1 parent 4acee97 commit 739258a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ap/CustomOption.oz
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ define
fun {UserFile}
case {Property.condGet 'user.custom.file' unit} of unit then
case {OS.getEnv 'MOZART_CUSTOM_FILE'} of false then
'~/.oz/CUSTOM'
{Property.get 'oz.dotoz'}#'/CUSTOM'
[] X then X end
[] X then X end
end
Expand Down
4 changes: 3 additions & 1 deletion init/Prop.oz
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ OZ_SEARCH_PATH = case {Getenv 'OZ_SEARCH_PATH'} of false then
elseof V then V end

OZ_DOTOZ = case {Getenv 'OZ_DOTOZ'} of false then
'~/.oz'
case {Getenv 'OZDOTOZ'} of false then
'~/.oz/'#{GET 'oz.version'}
elseof V then {SafePath V} end
elseof V then {SafePath V} end

OZ_SEARCH_LOAD = case {Getenv 'OZ_SEARCH_LOAD'} of false then
Expand Down
2 changes: 1 addition & 1 deletion wp/TkOptions.oz
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ local
UserHome = {OS.getEnv 'HOME'}
in
if UserHome \= false then
F = UserHome # '/.oz/wishrc'
F = {Property.get 'oz.dotoz'} # '/wishrc'
in
try {OS.stat F _} F
catch system(...) then unit end
Expand Down

0 comments on commit 739258a

Please sign in to comment.