Closed yabwon closed 2 years ago
Thanks @yabwon !
I think a user-specific auto-exec is a great idea. This would need to be saved at backend so that it can be available across different browser sessions.
This is probably a good point to enable home directories for users. Then, we can add the autoexec to the home dir, allowing the autoexec to be easily viewed and edited.
The implementation would therefore require:
/Users
top level directory under SAS_PATH
/users/allan
/users/$username
. Admins will see every user under the top-level /users
folder./Users/allan/autoexec.sas
file is also createdWhen launching a SAS session (executor.ts), the autoexec.sas
file is copied (if it exists) from the user folder to the session folder (as user-autoexec.sas
).
The SAS executor is also updated with the following code injected into the code.sas program: %inc "$(SAS_PATH)/sessions/$(sessionid)/user-autoexec.sas";
IMPORTANT - this behaviour should only happen for the /CODE/ExecuteSASCode
API (not Stored Program requests)
With the latest(v0.3.2) version, you can set autoexec to ~/.sasjs-server/user-autoexec.sas
in DESKTOP mode.
Hi Team!
First of all: Great Product! I love it!
Is it possible to set an
autoexec.sas
file in dedicated directory?All the best Bart