3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-27 13:12:42 +01:00

script/pbot: use $RealBin so symlinking works

This commit is contained in:
Pragmatic Software 2021-07-16 12:00:34 -07:00
parent f5232879e3
commit 329709ab4c

View File

@ -7,14 +7,14 @@
# SPDX-FileCopyrightText: 2021 Pragmatic Software <pragma78@gmail.com>
# SPDX-License-Identifier: MIT
use FindBin qw($Bin);
use lib "$Bin/../lib";
use FindBin qw($RealBin);
use lib "$RealBin/../lib";
use lib "$ENV{HOME}/.pbot";
use PBot::PBot;
PBot::PBot->new(
data_dir => "$Bin/../data",
module_dir => "$Bin/../modules",
update_dir => "$Bin/../updates",
data_dir => "$RealBin/../data",
module_dir => "$RealBin/../modules",
update_dir => "$RealBin/../updates",
)->start;