Skip to content

Commit

Permalink
Fix #695 avoid stripping leaf from LaunchDir
Browse files Browse the repository at this point in the history
  • Loading branch information
abrudz committed Jan 30, 2025
1 parent e8c8851 commit ace2d23
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions StartupSession/Link/LaunchDir.aplf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
dirLaunchDir;Env;Parent;s
dirLaunchDir;Env;Parent;s;path
Return the folder that APL was launched on

Env{2 ⎕NQ'.' 'GetEnvironment'}
Parent{¯11 ⎕NPARTS }
dirParent s/רsEnv¨'LOAD' 'LINK_RUN' 'LINK_DIR' 'CONFIGFILE' current directory if nothing else
paths/רsEnv¨'LOAD' 'LINK_RUN' 'LINK_DIR' 'CONFIGFILE' current directory if nothing else
dirParent path,'/'1=1 ⎕NINFO path avoid stripping leaf if dir

0 comments on commit ace2d23

Please sign in to comment.