Author: Alexander Hesse <[email protected]>
Branch: split-rpython
Changeset: r60107:ee184342fa3f
Date: 2013-01-16 00:45 +0100
http://bitbucket.org/pypy/pypy/changeset/ee184342fa3f/

Log:    Dont assume working path

diff --git a/pypy/bin/pyinteractive.py b/pypy/bin/pyinteractive.py
--- a/pypy/bin/pyinteractive.py
+++ b/pypy/bin/pyinteractive.py
@@ -9,6 +9,8 @@
 import os, sys
 import time
 
+sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..'))
+
 import pypy
 from pypy.tool import option
 from optparse import make_option
diff --git a/rpython/translator/c/gcc/trackgcroot.py 
b/rpython/translator/c/gcc/trackgcroot.py
--- a/rpython/translator/c/gcc/trackgcroot.py
+++ b/rpython/translator/c/gcc/trackgcroot.py
@@ -1,6 +1,8 @@
 #! /usr/bin/env python
 import re, sys, os, random
 
+sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..', 
'..'))
+
 from rpython.translator.c.gcc.instruction import Insn, Label, InsnCall, InsnRet
 from rpython.translator.c.gcc.instruction import InsnFunctionStart, InsnStop
 from rpython.translator.c.gcc.instruction import InsnSetLocal, InsnCopyLocal
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to