fixed bug: open the doc dir if running script

the relative directory 'doc' does not exist in 'src', only in root;
before moving the documentation, ot was the other way around, and either
of them did not work.
This commit is contained in:
joten 2014-03-09 18:31:37 +01:00
parent e7b88f25ff
commit eda67b9ace
2 changed files with 7 additions and 2 deletions

View File

@ -36,7 +36,7 @@ Config_init()
Config_normFgColor :=
Config_selBgColor :=
Config_selFgColor :=
Config_barCommands := "Run, explore doc;Monitor_toggleBar();Main_reload();Reload;ExitApp"
Config_barCommands := "Run, explore " Main_docDir ";Monitor_toggleBar();Main_reload();Reload;ExitApp"
Config_readinBat := False
Config_readinCpu := False
Config_readinDate := True

View File

@ -119,7 +119,7 @@ Main_evalCommand(command)
}
Main_help:
Run, explore %A_ScriptDir%\doc
Run, explore %Main_docDir%
Return
Main_quit:
@ -152,6 +152,11 @@ Main_makeDir(dirName) {
Main_setup() {
Local winAppDir
Main_docDir := A_ScriptDir
If (SubStr(A_ScriptDir, -3) = "\src")
Main_docDir .= "\.."
Main_docDir .= "\doc"
Main_logFile := ""
Main_dataDir := ""
Main_autoLayout := ""