##// END OF EJS Templates
Cleanup and refactor of API, almost complete....
Cleanup and refactor of API, almost complete. Still need to target exporter.py and convert.py Then one last run-trough.

File last commit:

r10677:e8436603
r10677:e8436603
Show More
python_armor.py
33 lines | 1.1 KiB | text/x-python | PythonLexer
"""
Exporter that exports a Python-Armor code file (.py)
"""
#-----------------------------------------------------------------------------
# Copyright (c) 2013, the IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
from IPython.utils.traitlets import Unicode
# local import
import python.PythonExporter
#-----------------------------------------------------------------------------
# Classes
#-----------------------------------------------------------------------------
class PythonArmorExporter(python.PythonExporter):
"""
Exports a Python-Armor code file (.py)
"""
template_file = Unicode(
'python_armor', config=True,
help="Name of the template file to use")