How to source files from other directories?

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

Post Reply
EmadOgail
Posts: 7
Joined: Thu Feb 09, 2023 7:56 am

How to source files from other directories?

Post by EmadOgail » Thu Feb 09, 2023 8:08 am

Dear friends,
I am new to OpenSees and TCL language.
I want to ask a question, when running OpenSees, can I source the tcl files from another directory?
In other words, instead of moving the tcl files to the same directory of OpenSees, is there any was else to source the files while keeping the files at their directories?
This will help me in arranging the files.
Thank you.

mhscott
Posts: 872
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: How to source files from other directories?

Post by mhscott » Thu Feb 09, 2023 3:30 pm

Yes, source the path to the file, e.g.

source ../file.tcl
source subdir/file.tcl
source c:\path\to\file.tcl

Post Reply