Skip to content

Commit

Permalink
fix: source tsch environment file from anywhere (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks authored Jan 23, 2024
1 parent 601a7f6 commit 5a628e4
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions environ.csh
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#!/bin/tcsh
set this_cmd=($_)
set this_dir=`dirname ${this_cmd[2]}`
setenv QADB `cd ${this_dir} && pwd -P`

setenv QADB `pwd -P`
setenv JYPATH "${QADB}/src/"
env|grep --color -w JYPATH
set src_dir=${QADB}/src/
if (! $?JYPATH) then
setenv JYPATH $src_dir
else
if ("$JYPATH" == "") then
setenv JYPATH $src_dir
else
setenv JYPATH $src_dir\:$JYPATH
endif
endif

0 comments on commit 5a628e4

Please sign in to comment.