You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2012/12/05 21:01:51 UTC

[9/12] git commit: Allow allura_import.py to find the dependent libraries in ../Allura

Allow allura_import.py to find the dependent libraries in ../Allura


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/fac00c41
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/fac00c41
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/fac00c41

Branch: refs/heads/tv/5382
Commit: fac00c413d446a875000d11707755ccc6111b25b
Parents: 50cc989
Author: Jon Schewe <jp...@mtu.net>
Authored: Thu Nov 29 19:36:18 2012 -0600
Committer: Jon Schewe <jp...@mtu.net>
Committed: Thu Nov 29 19:36:18 2012 -0600

----------------------------------------------------------------------
 scripts/allura_import.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/fac00c41/scripts/allura_import.py
----------------------------------------------------------------------
diff --git a/scripts/allura_import.py b/scripts/allura_import.py
index f5b6cce..e90b07e 100644
--- a/scripts/allura_import.py
+++ b/scripts/allura_import.py
@@ -10,6 +10,9 @@ from optparse import OptionParser
 from pprint import pprint
 from datetime import datetime
 
+import os.path
+scriptDir=os.path.dirname(__file__)
+sys.path.append(os.path.join(scriptDir, '..', 'Allura'))
 from allura.lib.import_api import AlluraImportApiClient