sys path modifications

This commit is contained in:
David Halter committed 2012-09-14 03:05:31 +02:00
1 parent 65064b1312
commit 9a2ec13230
8 files changed
+140 -6

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
import sys
import os
from os import dirname
sys.path.insert(0, '../..')
sys.path.append(dirname(os.path.abspath('thirdparty' + os.path.sep + 'asdf')))
# modifications, that should fail:
# because of sys module
sys.path.append(sys.path[1] + '/thirdparty')
# syntax err
sys.path.append('a' +* '/thirdparty')
#? ['evaluate']
import evaluate
#? ['goto']
evaluate.goto
#? ['pylab_']
import pylab_