dbrtools/dbr/dbrenv.py
branchDBRToolsDev
changeset 285 6a928cf9e181
parent 284 0792141abac7
--- a/dbrtools/dbr/dbrenv.py	Sun Jun 13 18:33:42 2010 +0100
+++ b/dbrtools/dbr/dbrenv.py	Sun Jun 13 20:39:03 2010 +0100
@@ -16,6 +16,7 @@
 #I'm using the existing stuff as helpers until things get relocated...
 import os.path
 import glob
+import re
 
 import dbrutils
 import dbrbaseline
@@ -35,6 +36,9 @@
   if(os.path.exists(os.path.join(location,'build_md5.zip'))):
     print 'loading zipped environment'
     return DBRZippedEnv(location)
+  if(re.match('http://.+',location, re.IGNORECASE)):  
+    print 'loading remote zipped environment'
+    return DBRZippedEnv(location)
   if(os.path.exists(os.path.join(location,dbrutils.patch_path_internal()))): #should do something more fun with creating a basleine if we have MD5s
     print 'loading new env...warning: this is only here for compatibility'
     return DBRNewLocalEnv(location)