Thursday, 5 September 2013

compiling file having path in variable (IDL)

compiling file having path in variable (IDL)

Usually when I want to compile a file I can use
.compile /home/.../file.pro
But assume I have this path in variable only. Then the code below
path = '/home/.../file.pro'
.compile path
returns error because compiler thinks path is a file and it can't find it.
How can I avoid this?

No comments:

Post a Comment