Exception

JJ joacim at home.se
Wed Mar 22 10:46:58 CET 2000


Hi!

When I run script:
------------------------------------------------
# Test import Modules and Constants

# Append paths to directories
import sys
sys.path.append("E:/Ptc/Scripts/Constants")
sys.path.append("E:/Ptc/Scripts/Modules")

# Import
import Log
import Constants

from com.volvo.pie.safe.apiwrapper import *
from java.lang import StringBuffer, String

# A simple constant usage
print "Bilen " + Constants.strBil1

# A simple function usage from a module
Log.logFunctionCall(
------------------------------------------------

I get:
'import exceptions' failed; using string-based exceptions

Why? How can I solve this?

BR
Joacim





More information about the Python-list mailing list