ignore literal . in sys.path (happens with IronPython)

This commit is contained in:
Dmitry Jemerov
2010-08-22 18:50:21 +04:00
parent f9a7f613bd
commit 0dd16012b5

View File

@@ -1,4 +1,4 @@
import sys
import os.path
for x in sys.path:
if x != os.path.dirname(sys.argv [0]): sys.stdout.write(x+chr(10))
if x != os.path.dirname(sys.argv [0]) and x != '.': sys.stdout.write(x+chr(10))