Removed pyfiglet dependancy.

这个提交包含在:
Craig Warren
2016-05-19 17:35:36 +01:00
父节点 9d2945614e
当前提交 a1c61a8106
共有 2 个文件被更改,包括 12 次插入6 次删除

查看文件

@@ -14,5 +14,4 @@ dependencies:
- lxml - lxml
- pip: - pip:
- psutil - psutil
- pyfiglet

查看文件

@@ -19,8 +19,6 @@
import sys import sys
import decimal as d import decimal as d
from pyfiglet import Figlet
class ListStream(object): class ListStream(object):
"""A list can be streamed into. Required when temporarily redirecting stdio to capture output from users Python code blocks.""" """A list can be streamed into. Required when temporarily redirecting stdio to capture output from users Python code blocks."""
@@ -56,12 +54,21 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with gprMax. If not, see <http://www.gnu.org/licenses/>.""" along with gprMax. If not, see <http://www.gnu.org/licenses/>."""
gprMaxlogo = """
__ __
__ _ _ __ _ __| \/ | __ ___ __
/ _` | '_ \| '__| |\/| |/ _` \ \/ /
| (_| | |_) | | | | | | (_| |> <
\__, | .__/|_| |_| |_|\__,_/_/\_\\
|___/|_|
"""
width = 65 width = 65
url = 'www.gprmax.com' url = 'www.gprmax.com'
print('\nElectromagnetic modelling software based on the Finite-Difference \nTime-Domain (FDTD) method') print('\nElectromagnetic modelling software based on the Finite-Difference \nTime-Domain (FDTD) method')
print('\n{} {} {}'.format('*'*round((width - len(url))/2), url, '*'*round((width - len(url))/2))) print('\n{} {} {}'.format('*'*round((width - len(url))/2), url, '*'*round((width - len(url))/2)))
gprMaxlogo = Figlet(font='standard', width=width, justify='center') print('{}'.format(gprMaxlogo))
print('{}'.format(gprMaxlogo.renderText('gprMax')))
print('{} v{} {}'.format('*'*round((width - len(version))/2), (version), '*'*round((width - len(version))/2))) print('{} v{} {}'.format('*'*round((width - len(version))/2), (version), '*'*round((width - len(version))/2)))
print(licenseinfo) print(licenseinfo)