'fastmath._native': 'fastmath'
}
+.. block-warning:: Overrides based an environment variable
+
+ When m.css is run, an environment variable named
+ :sh:`$MCSS_GENERATING_OUTPUT` is set. This can be used for *really dirty*
+ hacks when monkey-patching imported modules is not enough (for example in
+ order to change behavior inside native modules).
+
`Docstrings`_
-------------
parser.add_argument('--debug', help="verbose debug output", action='store_true')
args = parser.parse_args()
+ # Set an environment variable indicating m.css is being run. This can be
+ # used for REALLY DIRTY hacks when monkey-patching imported modules is not
+ # enough (for example in order to change behavior inside native modules and
+ # such)
+ #
+ # Since this is done here in __main__, it can't be checked by a test.
+ os.environ['MCSS_GENERATING_OUTPUT'] = '1'
+
# Load configuration from a file, update the defaults with it
config = copy.deepcopy(default_config)
name, _ = os.path.splitext(os.path.basename(args.conf))