src/pylib/Lib/n_sys

Search:
Group by:
Source   Edit  

Vars

argv: seq[string]
Source   Edit  
orig_argv = newSeqOfCap(argc)
.. hint:: rely on paramCount<https://nim-lang.org/docs/cmdline.html#paramCount>_ and paramStr<https://nim-lang.org/docs/cmdline.html#paramStr%2Cint>_. See their document for availability. Source   Edit  

Consts

byteorder = "little"
Source   Edit  
hexversion = 51577072
Source   Edit  
implementation = ("pynim", (0, 9, 8, "alpha", 0), 51577072,
                  (val: "", has: false))
Source   Edit  
maxsize = 9223372036854775807'i64
Source   Edit  
platform = "linux"
Note: the value is standalone for bare system

and haiku/netbsd appended with major version instead of "unknown". In short, this won't be "unknown" as Python does.

Source   Edit  
version = "3.13.0"
Source   Edit  
version_info = (major: 3, minor: 13, patch: 0, releaselevel: "final", serial: 0)
Source   Edit  

Templates

template executable(): string
returns:
  • when nimscript, path of Nim;
  • when JavaScript:
    • on browser: empty string
    • on NodeJS/Deno: executable path of Node/Deno
  • otherwise, it's the path of current app/exe.
Source   Edit