Skip to content

Commit 4220dae

Browse files
Updated SQLiq Miner so that it can be installed and called from anywhere, even if the fun_stuff_file is not in the same directory
1 parent a475b70 commit 4220dae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sqlite_miner.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@
6868
print_copyright(STDOUT);
6969

7070
# Set other files to read in
71-
my $fun_stuff_file = "fun_stuff.pl";
71+
my ($current_filename, $current_filedir, $current_suffix) = File::Basename::fileparse(__FILE__);
72+
my $fun_stuff_file = $current_filedir . "fun_stuff.pl";
7273

7374
# Import our hash of Fun Stuff to look for
7475
require $fun_stuff_file;

0 commit comments

Comments
 (0)