ActiveState Community

Problem with "source" command while wrapping.

Posted by sivabalan on 2009-03-17 22:58

Hi,

I successfully wrapped the Application,and exe got generated.I included multiple scripts during wrapping and call that scripts from other using "source" command.After wrapping, If I execute the application,where ever it finds source command and then script name(As it is in same folder I didn't give any path),It is giving error telling "there is no file or folder in that path".So,while wrapping an application,In source command path, what changes I have to do?Please Guide me.

Thanks,
Sivabalan K

jeffh | Thu, 2009-03-19 13:36

When wrapping your code, and indeed in any situation where a portable codebase is important, you must ensure that the [source] command uses only relative pathnames, built off the [info script] name of the current script from which the others are being sourced.