From 2abf463a9547e31445ffd9573aa1f74aa4bcbec6 Mon Sep 17 00:00:00 2001 From: Nate Coraor Date: Tue, 15 Sep 2009 12:57:17 -0400 Subject: [PATCH] More fixes for cleanup_datasets.py --- scripts/cleanup_datasets/cleanup_datasets.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/cleanup_datasets/cleanup_datasets.py b/scripts/cleanup_datasets/cleanup_datasets.py index 35f2ced06c0..7eb12afd90b 100644 --- a/scripts/cleanup_datasets/cleanup_datasets.py +++ b/scripts/cleanup_datasets/cleanup_datasets.py @@ -1,5 +1,7 @@ #!/usr/bin/env python +import os, sys + new_path = [ os.path.join( os.getcwd(), "lib" ) ] new_path.extend( sys.path[1:] ) # remove scripts/ from the path sys.path = new_path @@ -8,7 +10,7 @@ from galaxy import eggs import pkg_resources pkg_resources.require( "SQLAlchemy >= 0.4" ) -import sys, os, time, ConfigParser, shutil +import time, ConfigParser, shutil from datetime import datetime, timedelta from time import strftime from optparse import OptionParser