summaryrefslogtreecommitdiff
path: root/src/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.py')
-rw-r--r--src/common.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common.py b/src/common.py
index 340eb213..1c119c1e 100644
--- a/src/common.py
+++ b/src/common.py
@@ -30,7 +30,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# various useful functions
+__doc__ = "various useful functions"
import base64
import os
@@ -41,6 +41,11 @@ import curses
import traceback
import sys
+def debug(s):
+ f = open("debug", 'a')
+ f.write(s+'\n')
+ f.close()
+
def exception_handler(type_, value, trace):
"""
on any traceback: exit ncurses and print the traceback