Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using environmental variable for setting paths

Status
Not open for further replies.

efittery

Programmer
Feb 13, 2003
21
US
The "Compile Options" allows you to set the "Aspect Include Path". It only allows about 80 characters in this field. I defined the environmental variable "PROCOMM_INC" to be "C:\cygwin\home\elmerf\projects\testScripts\LDM_UTs\COMMON"

Now I want to put the environmental variable "PROCOMM_INC" into the field for "Aspect Include Path".

I tried "$PROCOMM_INC" and "PROCOMM_INC" and neither works.

any suggestions
 
It looks like this field does not read environment variables. I moved a .inc file from my ASPECT directory to my temp directory (environment variable of TEMP) and added TEMP to the include path field. I tried to compile a sample script including that .inc file and the compile failed. When I replaced TEMP with the actual value of my temp directiry, the script compiled fine.
aspect@aspectscripting.com
 
I just gave up and put the following at the top of my script file.

#include ".\COMMON\common.inc"

This way, I know that when anybody using my scripts has their script load path set correctly, all the common.inc procs will be in the correct place.

You can do what has to be done with Procomm's Aspect, but it sure isn't tk/tcl/expect or perl.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top