diff --git a/docs/upgrades/_upgrade.skeleton b/docs/upgrades/_upgrade.skeleton index a9ea0fd32..3071f93f1 100644 --- a/docs/upgrades/_upgrade.skeleton +++ b/docs/upgrades/_upgrade.skeleton @@ -8,7 +8,13 @@ # http://www.plainblack.com info@plainblack.com #------------------------------------------------------------------- -use lib "../../lib"; +our ($webguiRoot); + +BEGIN { + $webguiRoot = "../.."; + unshift (@INC, $webguiRoot."/lib"); +} + use strict; use Getopt::Long; use WebGUI::Session; @@ -64,7 +70,7 @@ sub start { 'configFile=s'=>\$configFile, 'quiet'=>\$quiet ); - my $session = WebGUI::Session->open("../..",$configFile); + my $session = WebGUI::Session->open($webguiRoot,$configFile); $session->user({userId=>3}); my $versionTag = WebGUI::VersionTag->getWorking($session); $versionTag->set({name=>"Upgrade to ".$toVersion});