Sep. 13th, 2012

fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
[personal profile] fu

Just a quick FYI: from now on, anything run from the command line that loads the ljlib.pl library will need to use the following code:

BEGIN { require 'ljlib.pl' }

Instead of just:

require 'ljlib.pl';

This is needed for workers, scripts, and tests.

The old way used to work back when we were copying everything over to a single directory. Now that the code could be from one of several different directories, we have to have a bit of extra logic when setting things up, so we need to make sure that ljlib.pl is loaded early enough in the process.

I've updated all the various command line things that need this, so you should be good to go if you follow the way that other scripts have set it up.

If you ever run into the error Undefined subroutine &LJ::get_all_directories called at... when writing/running your own scripts, this would be why. Just make sure to wrap that require of ljlib.pl in BEGIN and that should get things working.

Further info here: * Bug 4631 * discussion on the pull request on github

Profile

dw_dev: The word "develop" using the Swirly D logo.  (Default)
Dreamwidth Open Source Development

July 2025

S M T W T F S
  12345
6789101112
13141516171819
20212223 242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 16th, 2025 06:53 am
Powered by Dreamwidth Studios