Browse Source

* Config file in home dir has . prepended on unix

git-svn-id: trunk@37828 -
michael 7 years ago
parent
commit
44b2419d5e
1 changed files with 4 additions and 1 deletions
  1. 4 1
      utils/pas2js/pas2jscompiler.pp

+ 4 - 1
utils/pas2js/pas2jscompiler.pp

@@ -2054,7 +2054,10 @@ begin
   // first try HOME directory
   aFilename:=ChompPathDelim(GetEnvironmentVariableUTF8('HOME'));
   if aFilename<>'' then
-    if TryConfig(aFilename+PathDelim+DefaultConfigFile) then exit;
+    begin
+    aFilename:=aFilename+PathDelim{$IFDEF UNIX}+'.'{$ENDIF}+DefaultConfigFile;
+    if TryConfig(aFileName) then exit;
+    end;
 
   // then try compiler directory
   if (CompilerExe<>'') then begin