Fix path mangling in cleanup_datasets.py

This commit is contained in:
Nate Coraor
2009-09-14 12:23:16 -04:00
parent 81e907b81d
commit f11dcd9781
+4 -4
View File
@@ -1,5 +1,9 @@
#!/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
pkg_resources.require( "SQLAlchemy >= 0.4" )
@@ -9,10 +13,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