cpython-3.3.0: Bindings for libpython

Safe HaskellNone

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

Reset sys.warnoptions to an empty list.

addWarnOption :: Text -> IO ()Source

Add an entry to sys.warnoptions.

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).