details: http://www.bx.psu.edu/hg/galaxy/rev/7f4c8fee3b39 changeset: 2688:7f4c8fee3b39 user: Nate Coraor <nate@bx.psu.edu> date: Mon Sep 14 12:23:16 2009 -0400 description: Fix path mangling in cleanup_datasets.py 1 file(s) affected in this change: scripts/cleanup_datasets/cleanup_datasets.py diffs (23 lines): diff -r a5ee939839eb -r 7f4c8fee3b39 scripts/cleanup_datasets/cleanup_datasets.py --- a/scripts/cleanup_datasets/cleanup_datasets.py Mon Sep 14 12:11:00 2009 -0400 +++ b/scripts/cleanup_datasets/cleanup_datasets.py Mon Sep 14 12:23:16 2009 -0400 @@ -1,4 +1,8 @@ #!/usr/bin/env python + +new_path = [ os.path.join( os.getcwd(), "lib" ) ] +new_path.extend( sys.path[1:] ) # remove scripts/ from the path +sys.path = new_path from galaxy import eggs import pkg_resources @@ -8,10 +12,6 @@ from datetime import datetime, timedelta from time import strftime from optparse import OptionParser - -new_path = [ os.path.join( os.getcwd(), "lib" ) ] -new_path.extend( sys.path[1:] ) # remove scripts/ from the path -sys.path = new_path import galaxy.model.mapping from galaxy.model.orm import and_, eagerload