so, after a sample test :
PROGRAM TESTPY
CRT 'WHO=' : @WHO
CRT 'LOGNAME=' : @LOGNAME
CRT 'TTY=':@TTY
CMD = 'LISTU'; GOSUB RUNIT
CMD = 'LISTUSER DETAIL'; GOSUB RUNIT
CMD = 'PORT.STATUS'; GOSUB RUNIT
CMD = 'PORT.STATUS LAYER.STACK PORT ' : @USERNO; GOSUB RUNIT
CMD = 'DOS /C uvlictool'; GOSUB RUNIT
INPUT K
STOP
RUNIT:
CRT CMD : STR('-', 20)
EXECUTE CMD
RETURN
from os shell,
PS C:\u2\uv> .\python\python.exe
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import u2py
>>> u2py.run("BASIC BP TESTPY")
Compiling: Source = 'BP/TESTPY', Object = 'BP.O/TESTPY'
*
Compilation Complete.
>>> u2py.run("RUN BP TESTPY")
WHO=uv
LOGNAME=INFODATA\efv
TTY=console
LISTU--------------------
These are the UniVerse users presently sharing the system.
uid Pid User Name Terminal No Login Time
* 0 1688 efv console:1688 Feb 23 18:21
There are currently 1 users logged on the system.
LISTUSER DETAIL--------------------
UsrNo Pid...... UID.. UserName Type Acct.............. LogonTime...............
2 1688 0 efv Term C:\u2\uv Wed Feb 23 18:21:25 2022
Total lines returned: 1
PORT.STATUS--------------------
There are currently 0 uniVerse sessions; 1 interactive, -1 phantom
Pid.... User name. Who... Port name..... Last command processed..........
1688 efv 2 Unknown Unavailable
PORT.STATUS LAYER.STACK PORT 2--------------------
There are currently 0 uniVerse sessions; 1 interactive, -1 phantom
Pid.... User name. Who... Port name..... Last command processed..........
1688 efv 2 Unknown Unavailable
DOS /C uvlictool--------------------
Device licensing is in effect.
No. Pid Package Device name IP address Device sub-key
1 1688
1 license seats are in use.
0 license seats are available.
at os side the pid is
PS C:\u2\uv> GET-PROCESS -PID 1688 -Verbose | format-list *
Name : python
Id : 1688
FileVersion : 3.7.3
Path : C:\u2\uv\python\python.exe
As we can read,
TTY is
console, LOGNAME is current OS user.
LISTU report a
Term and LISTUSER report a
console !
PORT.STATUS is Unknown Unavailable
UVLICTOOL do not report PY Package nor anything
at OS, there is no sub-process to run uv, it's pure python .
Okay, noted.