Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2023.0.0 - Русский


pathsep

предоставляет разделитель путей в переменной среды PATH текущей ОС

Синтаксис

s = pathsep()

Аргументы

s
символ: ";" в Windows, или ":" в Linux.

Примеры

pathsep()
getenv PATH
tokens(getenv("PATH"), pathsep())
--> pathsep()
 ans  =
  ";"

--> getenv PATH
  "C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\OpenSSH\; ..."

--> tokens(getenv("PATH"), pathsep())
 ans  =
  "C:\Windows\system32"
  "C:\Windows"
  "C:\Windows\System32\Wbem"
  "C:\Windows\System32\OpenSSH\"
  "C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common"
  "C:\Program Files\NVIDIA Corporation\NVIDIA NGX"

Смотрите также

  • filesep — возвращает разделитель директорий для текущей платформы
  • getenv — get the value of an environment variable
Report an issue
<< pathconvert Пути - Имена файлов splitURL >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Mar 07 09:28:48 CET 2023