• Michael Stahl's avatar
    sal: add special handling of argc==0 to osl_setCommandArgs() · 1acaa577
    Michael Stahl yazdı
    ... to set up a fake command line.  This is used from pyuno, when
    invoked from the "python" executable as "import uno".
    
    On WNT there is an API to get the actual command line, so just use that
    even in the "fake" case; on UNX just fake something up.
    
    Just for the record the whole osl_setCommandArgs() is called exactly once
    assumption should work out _unless_ there is a program that uses SAL_MAIN
    _and_ does a python-level "import uno" _before_ it wants to create a
    python-based UNO service (via pyuno_loader::CreateInstance), since
    pyuno already takes care to call Runtime::initialize() at most once.
    
    Change-Id: Ifd23de733ea3e6b694d46ab039b6aa4fd3e7fc1b
    Signed-off-by: 's avatarStephan Bergmann <sbergman@redhat.com>
    1acaa577
Adı
Son kayıt (commit)
Son güncelleme
..
demo Loading commit data...
doc Loading commit data...
inc/pyuno Loading commit data...
source Loading commit data...
zipcore Loading commit data...
CustomTarget_python_shell.mk Loading commit data...
CustomTarget_zipcore.mk Loading commit data...
Executable_python_wrapper.mk Loading commit data...
Library_pythonloader.mk Loading commit data...
Library_pyuno.mk Loading commit data...
Library_pyuno_wrapper.mk Loading commit data...
Makefile Loading commit data...
Module_pyuno.mk Loading commit data...
Package_python_scripts.mk Loading commit data...
Package_python_shell.mk Loading commit data...
Package_zipcore.mk Loading commit data...
README Loading commit data...
Rdb_pyuno.mk Loading commit data...