1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-07 14:40:05 +00:00

Merge pull request #297 from sasjs/issue-292

feat: Enable SAS_PACKAGES in SASjs Server
This commit is contained in:
Allan Bowe
2022-10-03 16:08:30 +01:00
committed by GitHub
6 changed files with 208 additions and 9 deletions

View File

@@ -3,6 +3,7 @@ import { Session } from '../../types'
import { promisify } from 'util'
import { execFile } from 'child_process'
import {
getPackagesFolder,
getSessionsFolder,
generateUniqueFileName,
sysInitCompiledPath,
@@ -104,7 +105,8 @@ export class SASSessionController extends SessionController {
// the autoexec file is executed on SAS startup
const autoExecPath = path.join(sessionFolder, 'autoexec.sas')
const contentForAutoExec = `/* compiled systemInit */
const contentForAutoExec = `filename packages "${getPackagesFolder()}";
/* compiled systemInit */
${compiledSystemInitContent}
/* autoexec */
${autoExecContent}`