Changeset 194


Ignore:
Timestamp:
02/18/2010 02:55:26 PM (13 years ago)
Author:
marcus
Message:
  • moved global variables to setting - so it now holds all runtime data (and is renamed in that way)
Location:
SHX/trunk/src/SeismicHandler
Files:
1 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • SHX/trunk/src/SeismicHandler/commands/echo.py

    r175 r194  
    1717 
    1818from SeismicHandler.core.base.command import BaseCommand 
    19 from SeismicHandler.core.setting import Settings 
     19from SeismicHandler.core import Settings 
    2020 
    2121class echo(BaseCommand): 
    2222    """ 
    2323    command ECHO <text1>[;<text2>[;...;<textN>]] 
    24      
     24 
    2525    Writes text to echo channel (set by ECHO_CH command).  Default output 
    2626    channel  is the seismhandler text window.  All parameters entered are 
    2727    displayed, separated by blanks. 
    28      
     28 
    2929    parameters: 
    30      
     30 
    3131    <text1>, <text2>, ..., <textN>  ---  parameter type: string 
    3232       Text to be written to echo channel, parameters are separated by 
    3333       blanks. 
    34      
     34 
    3535    qualifiers: 
    36      
     36 
    3737    /NO_LF 
    3838       Writes no line feed at the of the line.  Next ECHO command 
    3939       overwrites this one. 
    40      
     40 
    4141    /NO_CRLF 
    4242       Writes no line feed and no carriage return at the end of the 
    4343       line.  Next ECHO text is appended to this one. 
    44      
     44 
    4545    Examples: 
    46      
     46 
    4747       ECHO THIS IS A TEST           ! writes string "THIS IS A TEST" to 
    4848                                     ! the currently selected ECHO-file 
    49      
     49 
    5050       ECHO DISTANCE ^DISTANCE(2)    ! writes string "DISTANCE " and value 
    5151                                     ! of distance information of second trace 
     
    5959    ] 
    6060    expectFilename = False 
    61      
     61 
    6262    def __init__(self, *args, **kwargs): 
    6363        # unroll args & kwargs 
    6464        BaseCommand.__init__(self, *args, **kwargs) 
    65          
     65 
    6666    def run(self): 
    6767        if self.qualifiers["NO_LF"] or self.qualifiers["NO_CRLF"]: 
  • SHX/trunk/src/SeismicHandler/commands/echo_ch.py

    r175 r194  
    1717 
    1818from SeismicHandler.core.base.command import BaseCommand 
    19 from SeismicHandler.core.setting import Settings 
     19from SeismicHandler.core import Settings 
    2020 
    2121class echo_ch(BaseCommand): 
  • SHX/trunk/src/SeismicHandler/core/__init__.py

    r127 r194  
    55# This file is part of Seismic Handler eXtended (SHX) 
    66# Full details can be found at project website http://www.seismic-handler.org/ 
    7 #  
     7# 
    88# SHX is free software; you can redistribute it and/or modify 
    99# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as published by 
     
    2222from SeismicHandler.core.history import History as history 
    2323from SeismicHandler.core import codes 
     24 
     25from SeismicHandler.core.runtime import Settings, Globals 
Note: See TracChangeset for help on using the changeset viewer.