OK : I did gave a directory DBC/Schema/Result and it search for a file DBC/Schema/Result.pm
Is there a way to include as modules all the pm files in the . DBC/Schema/Result folder ? F. From: RAPPAZ Francois [mailto:francois.rap...@unifr.ch] Sent: mercredi, 20. août 2014 08:39 To: par@perl.org Subject: RE: packaging a script that uses DBIx::Class I progress : I did manage to have a zip archive that could be transformed in a working exe. But I correct the zip file with adding by hand the missing modules. I‘m trying to have the right zip from the start, but I’m struggling with the modules that described my tables: they are located in a Dbc folder, below the working directory instead of in my site/lib perl tree. I tried to include these with pp -v 3 -B -cd .\ppcache -I .\Dbc\Schema -I .\Dbc\Schema\Result -M Dbc::Schema -M Dbc::Schema::Result … without success What am I missing ? I will try the –x option when my static compilation is ok. My first tests were failing with a runtime error in the script execution. François From: roderich.sch...@gmail.com<mailto:roderich.sch...@gmail.com> [mailto:roderich.sch...@gmail.com] On Behalf Of Roderich Schupp Sent: mardi, 19. août 2014 15:59 To: RAPPAZ Francois Cc: par@perl.org<mailto:par@perl.org> Subject: Re: packaging a script that uses DBIx::Class On Tue, Aug 19, 2014 at 3:43 PM, RAPPAZ Francois <francois.rap...@unifr.ch<mailto:francois.rap...@unifr.ch>> wrote: Shall I add –M Variable/Magic.pm – M B/Hooks/EndOfScope/PP/FieldHash.pm ? It should read -M Variable::Magic -M B::Hooks::EndOfScope::PP (the latter should not be necessary if you were using the latest Module::ScanDeps). Alternatively, you could pack with "pp -x ..." as M::SD may not detect all stuff loaded by Module::Runtime by using static analysis (it's called a *runtime* loader for a reason). Note that this will run your script once. Cheers, Roderich