Closed GoogleCodeExporter closed 9 years ago
As a workaround, you could write a very short bash script to set the
environment variable and then run your script.
In Python, you could also use sys.path[1] to modify the module search path. I
haven't tried it in SL4A, but modifying os.environ[2] might also work.
[1]: http://docs.python.org/library/sys.html#sys.path
[2]: http://docs.python.org/library/os.html#os.environ
Original comment by barbaraj...@gmail.com
on 5 Aug 2011 at 1:17
Thanks for comment.
Yes, your workaround might be work.
But sl4a shell interpreter says it cannot find the path of execs (perl) among
default $PATH.
Where are those interpreter installed ?
Original comment by itar...@gmail.com
on 5 Aug 2011 at 1:57
You'll need to provide the full path to the executable:
/data/data/com.googlecode.perlforandroid/files/perl/perl
Original comment by barbaraj...@gmail.com
on 5 Aug 2011 at 2:11
Thank you for comment. I tested below, and it worked.
export PERL5LIB=/mnt/sdcard/lib/perl
/data/data/com.googlecode.perlforandroid/files/perl/perl scripts/test.pl
and locating personal packages in /mnt/sdcard/lib/perl folder.
Original comment by itar...@gmail.com
on 5 Aug 2011 at 9:27
Original comment by rjmatthews62
on 21 Aug 2011 at 12:00
Original issue reported on code.google.com by
itar...@gmail.com
on 5 Aug 2011 at 9:19