Skip to content

Commit

Permalink
fix fileexists problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Watson committed Jan 18, 2009
1 parent 5ad3725 commit ada7b34
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Support/classes/TextMate.sc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,17 @@ TextMate {

*initClass {
var opt;
var settings;
var setpath = "%/.textmate-settings".format(Platform.userAppSupportDir);

var settings = Object.readArchive("%/.textmate-settings".format(Platform.userAppSupportDir));
if(File.exists(setpath)) {
settings = Object.readArchive(setpath);
} {
settings = (
classfiles: true,
references: true
)
};

try {
menu = CocoaMenuItem(nil, 7, "TextMate", true);
Expand Down

0 comments on commit ada7b34

Please sign in to comment.