Permalink
Browse files

fix wrong import

  • Loading branch information...
1 parent 91f5c78 commit b4b8b14212b92a9b805d6c2fa55054f21ad8b347 @judell committed Jul 27, 2011
Showing with 3 additions and 6 deletions.
  1. +3 −6 worker/startup.py
View
9 worker/startup.py
@@ -4,6 +4,7 @@
from System.Security.AccessControl import *
clr.AddReference('ElmcityUtils')
+import ElmcityUtils;
from ElmcityUtils import *
clr.AddReference('System.Management')
@@ -64,17 +65,13 @@ def format_traceback():
log.write('owner: %s\n' % get_process_owner() )
-log.write('...installing python standard library...\n')
-
-uri = System.Uri('http://elmcity.blob.core.windows.net/admin/python_library.zip')
-FileUtils.UnzipFromUrlToDirectory(uri, get_local_storage() )
-
sys.path.append(get_local_storage() + '/Lib')
import traceback
try:
+ log.write('...installing python standard library...\n')
uri = System.Uri('http://elmcity.blob.core.windows.net/admin/python_library.zip')
- ElmcityUtils.FileUtils.UnzipFromUrlToDirectory(uri, local_storage)
+ FileUtils.UnzipFromUrlToDirectory(uri, local_storage)
except:
GenUtils.PriorityLogMsg('exception', 'startup.py', format_traceback() )

0 comments on commit b4b8b14

Please sign in to comment.