##// END OF EJS Templates
Fixing a few small bugs in the setup.py scripts. In setupbase.py, in find_scripts, ipython...
Fixing a few small bugs in the setup.py scripts. In setupbase.py, in find_scripts, ipython was spelled as lowercase. This didn't cause a problem on OS X as it is case insensitive. But on Linux, it crashed. Now ipython is spelled properly as "IPython". Also, kernel/config/tests and UserConfig were missing their __init__.py files. These have been added.

File last commit:

r1234:52b55407
r1254:19bd8e77
Show More
sctst.py
37 lines | 839 B | text/x-python | PythonLexer
"""Little utilities for testing tconfig.
This module is meant to be used via
import sctst; reload(sctst)
from sctst import *
at the top of the actual test scripts, so that they all get the entire set of
common test tools with minimal fuss.
"""
# Standard library imports
import os
import sys
from pprint import pprint
# Our own imports.
from IPython.config import sconfig
reload(sconfig)
from sconfig import mkConfigObj, RecursiveConfigObj, SConfigManager, \
sconf2file
# Simple utilities/classes for testing
def cat(fname):
print '### FILENAME:',fname
print open(fname).read()
class App(object):
"""A trivial 'application' class to be initialized.
"""
def __init__(self,config_class,config_filename):
self.rcman = SConfigManager(config_class,config_filename)
self.rc = self.rcman.sconf