cpython-3.5.0: Bindings for libpython
Safe HaskellNone
LanguageHaskell2010

CPython.System

Synopsis

Documentation

getObject :: Text -> IO (Maybe SomeObject) Source #

Return the object name from the sys module, or Nothing if it does not exist.

setObject :: Object a => Text -> a -> IO () Source #

Set name in the sys module to a value.

deleteObject :: Text -> IO () Source #

Delete name from the sys module.

resetWarnOptions :: IO () Source #

Add an entry to sys.warnoptions.

Reset sys.warnoptions to an empty list.

setPath :: Text -> IO () Source #

Set sys.path to a list object of paths found in the parameter, which should be a list of paths separated with the platform's search path delimiter (':' on Unix, ';' on Windows).