sys path modifications

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

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_