Subject: Re: Sparky python extensions
From: dongyi2827
Date: May 12, 2008

Previous: 133 Next: 498


Hi,everyone,
when I do following the suggestions in the cis_output.py ,sparky gives
the error message below:

Traceback (most recent call last):
File
/usr/local/src/sparky/platforms/linux-2.6.9/sparky-install/python/sparky/pythonshell.py,
line 268, in invoke_module_function
File string, line 1, in ?
IndentationError: expected an indented block (sparky_init.py, line 14)

My sparky_init.py is:

#
-----------------------------------------------------------------------------
# When a Sparky session starts the initilize_session() routines are
invoked
# from the following files.
#
# sparky_site.py - site initialization file
# sparky_init.py - user initialization file
#
# Typically a user has a sparky_init.py file in ~/Sparky/Python.
# If they dont then this file (which does nothing) is loaded.
#

def initialize_session(session):
# pass
def CS_command(s = session):
import csi_output
csi_output.write_csi_shifts(s)

session.add_command(CS, AJP/Write CSI format shift file (CS),
CS_command)


anyone can give somr suggestions,thanks in advance!