mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-20 02:49:49 +01:00
script/pbot: use $RealBin so symlinking works
This commit is contained in:
parent
f5232879e3
commit
329709ab4c
10
script/pbot
10
script/pbot
@ -7,14 +7,14 @@
|
|||||||
# SPDX-FileCopyrightText: 2021 Pragmatic Software <pragma78@gmail.com>
|
# SPDX-FileCopyrightText: 2021 Pragmatic Software <pragma78@gmail.com>
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
use FindBin qw($Bin);
|
use FindBin qw($RealBin);
|
||||||
use lib "$Bin/../lib";
|
use lib "$RealBin/../lib";
|
||||||
use lib "$ENV{HOME}/.pbot";
|
use lib "$ENV{HOME}/.pbot";
|
||||||
|
|
||||||
use PBot::PBot;
|
use PBot::PBot;
|
||||||
|
|
||||||
PBot::PBot->new(
|
PBot::PBot->new(
|
||||||
data_dir => "$Bin/../data",
|
data_dir => "$RealBin/../data",
|
||||||
module_dir => "$Bin/../modules",
|
module_dir => "$RealBin/../modules",
|
||||||
update_dir => "$Bin/../updates",
|
update_dir => "$RealBin/../updates",
|
||||||
)->start;
|
)->start;
|
||||||
|
Loading…
Reference in New Issue
Block a user