From eda67b9aceb3135193b3a5e485d684c56162f1ed Mon Sep 17 00:00:00 2001 From: joten Date: Sun, 9 Mar 2014 18:31:37 +0100 Subject: [PATCH] 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. --- src/Config.ahk | 2 +- src/Main.ahk | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Config.ahk b/src/Config.ahk index 72d3d74..2f05f44 100644 --- a/src/Config.ahk +++ b/src/Config.ahk @@ -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 diff --git a/src/Main.ahk b/src/Main.ahk index ea52b3a..a6e5b4c 100644 --- a/src/Main.ahk +++ b/src/Main.ahk @@ -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 := ""