Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2139)

Unified Diff: appengine/findit/util_scripts/remote_api.py

Issue 2391823006: [Findit] Add iterator and crash_iterator for delta test (Closed)
Patch Set: Update doc strings. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/findit/util_scripts/iterator.py ('k') | appengine/findit/util_scripts/script_util.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/util_scripts/remote_api.py
diff --git a/appengine/findit/util_scripts/remote_api.py b/appengine/findit/util_scripts/remote_api.py
index 2bfeb76aac9e22c29244c990e74e774ebe6b7222..6f5ab3d5d49d6343cf028bbf9532fdb71d732b13 100644
--- a/appengine/findit/util_scripts/remote_api.py
+++ b/appengine/findit/util_scripts/remote_api.py
@@ -12,28 +12,10 @@ For detail on usage of Remote API, please refer to:
https://cloud.google.com/appengine/docs/python/tools/remoteapi
"""
-import os
import socket
-import sys
-
-
-_FINDIT_ROOT_DIR = os.path.join(os.path.dirname(__file__), os.path.pardir)
-_THIRD_PARTY_DIR = os.path.join(_FINDIT_ROOT_DIR, 'third_party')
-_APPNGINE_SDK_DIR = os.path.join(_FINDIT_ROOT_DIR, os.path.pardir,
- os.path.pardir, os.path.pardir,
- 'google_appengine')
-
-
-# Add App Engine SDK dir to sys.path.
-sys.path.insert(1, _APPNGINE_SDK_DIR)
-sys.path.insert(1, _THIRD_PARTY_DIR)
-import dev_appserver
-dev_appserver.fix_sys_path()
-
-
-# Add Findit root dir to sys.path so that modules in Findit would be available.
-sys.path.insert(1, _FINDIT_ROOT_DIR)
+import script_util
+script_util.SetUpSystemPaths()
from google.appengine.api import urlfetch
from google.appengine.ext import ndb
« no previous file with comments | « appengine/findit/util_scripts/iterator.py ('k') | appengine/findit/util_scripts/script_util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698