@only.<OS> decorator. raise OSError if not supported OS
Project description
Install
$ [sudo] pip install only
Usage
>>> import only
>>> @only.linux
>>> @only.osx
>>> @only.unix
>>> @only.windows
Examples
>>> @only.osx
>>> def osascript(): pass
>>> osascript() # raise OSError if not OS X
Sources
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
only-1.0.2.tar.gz
(1.4 kB
view hashes)