Browse Source

Added deprecation warning for h

main
Jordi Llonch 9 years ago
parent
commit
8f5ca8c2df
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      h

+ 11
- 0
h View File

@@ -1,5 +1,16 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

if __name__ == "__main__":
import sys
import warnings

from hyde.engine import Engine
warnings.filterwarnings('always', category=DeprecationWarning)

message = ("Running hyde using '{0}' will be deprecated in 1.0. "
"Use 'hyde' command instead".format(sys.argv[0]))
warnings.warn(DeprecationWarning(message), stacklevel=1)

Engine().run()

Loading…
Cancel
Save