Changeset View
Changeset View
Standalone View
Standalone View
bin/scap-say
#!/usr/bin/env python2 | #!/usr/bin/env python2 | ||||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||
# | # | ||||
# Make the scap pig say stuff. | # Make the scap pig say stuff. | ||||
# | # | ||||
# Copyright © 2016 Wikimedia Foundation and contributors | # Copyright © 2016 Wikimedia Foundation and contributors | ||||
import os | import os | ||||
import sys | import sys | ||||
# Add scap package to search path | # Add scap package to search path | ||||
script = os.path.realpath(sys.argv[0]) | script = os.path.realpath(sys.argv[0]) | ||||
scap_src = os.path.dirname(os.path.dirname(script)) | scap_src = os.path.dirname(os.path.dirname(script)) | ||||
sys.path.append(scap_src) | sys.path.append(scap_src) | ||||
import scap | import scap | ||||
scap.Say.run() | |||||
out = scap.utils.deprecated_script('Try `scap say`') | |||||
sys.stderr.write(out) | |||||
sys.exit(1) |
Content licensed under Creative Commons Attribution-ShareAlike 3.0 (CC-BY-SA) unless otherwise noted; code licensed under GNU General Public License (GPL) or other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL