-
Notifications
You must be signed in to change notification settings - Fork 0
/
.konchrc
53 lines (40 loc) · 870 Bytes
/
.konchrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import datetime
import os
import pprint
import re
import sys
import time
import konch
import py_golf_games
# Available options:
# 'context', 'banner', 'shell', 'prompt',
# 'hide_context', 'ipy_extensions', 'ipy_autoreload'
banner = '''
Welcome to the py_golf_games shell. Please edit .konchrc file if
you'd like to add additional dependencies.
'''
konch.config({
'banner': banner,
'context': {
'os': os,
'sys': sys,
're': re,
'time': time,
'dt': datetime.datetime,
'pp': pprint.pprint,
'speak': konch.speak,
'py_golf_games': py_golf_games
},
'shell': 'ipython',
'ipy_autoreload': True,
'ipy_extensions': [
# Ipython extensions here
]
})
def setup():
pass
def teardown():
pass
# vim: filetype=python