Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit 1d9d853

Browse files
committed
Compiler: Fix virtualenv activation script
1 parent 9dab5a2 commit 1d9d853

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Compiler/package.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import std/terminal
22
import std/os
33
import std/osproc
44
import std/strutils
5+
import std/strformat
56
import std/envvars
67
import std/streams
78
import puppy
@@ -71,7 +72,7 @@ proc packageInstaller*() =
7172
discard execShellCmd(python & " -m venv NR_VENV")
7273

7374
let venvPath: string = appDirectory / "NullRAT" / "NR_VENV"
74-
let result = execCmdEx(fmt""" cmd /c \"{venvPath}\\Scripts\\activate && pip freeze\" """)
75+
let result = execCmdEx(fmt""" cmd /c "{venvPath}\Scripts\activate.bat && pip freeze" """)
7576
var allInstalled: bool = true
7677

7778
stdout.styledWriteLine({styleBright}, "[2] Checking if packages already installed...")

Compiler/utils.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ proc cleanWorkingDir*() =
5454
removeDir("dist")
5555

5656
proc runInVenv*(venvPath: string, command: string): int =
57-
return execShellCmd(fmt""" cmd /c \"{venvPath}\\Scripts\\activate && {command}\" """)
57+
return execShellCmd(fmt""" cmd /c "{venvPath}\Scripts\activate.bat && {command}" """)

0 commit comments

Comments
 (0)