Changeset 3251

Show
Ignore:
Timestamp:
05/26/07 06:47:14 (1 year ago)
Author:
mscott
Message:

Do not perform time-consuming pack operation if SCHEVO_NOPACK=1 in the environment

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Schevo/schevo/database2.py

    r3191 r3251  
    77from schevo.lib import optimize 
    88 
     9import os 
    910import random 
    1011 
     
    225226    def pack(self): 
    226227        """Pack the database.""" 
    227         self.connection.pack() 
     228        if os.environ.get('SCHEVO_NOPACK', '').strip() != '1': 
     229            self.connection.pack() 
    228230 
    229231    def populate(self, sample_name=''):