1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 <2014> 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 <2014> 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: importing jar files from CSS Python script |
From: | Xihui Chen <[email protected]> |
To: | Hovanes Egiyan <[email protected]> |
Cc: | [email protected], "[email protected]" <[email protected]> |
Date: | Sun, 2 Feb 2014 23:34:07 -0800 |
Hi,
we are trying to have a Python/Jython script associated with a widget in CSS BOY to work
with a SQLite database using sqlite-jdbc. When we try to import "org.sqlite" , the "import"
statement fails even if we add the actual jar-file full name to "sys.path" (which is somewhere in
my home directory). It looks as if the "import"-statement does not care what the "sys.path"
variable is. I could do this using regular Jython 2.5.2, but we are having problem doing this
with CSS. How can we use external jar-files in the Python scripts in CSS, are these things
in CSS Python scripts supposed to work as they do in Jython?
Our current goal is to be able to read data from MySQL and SQLite databases
from our CSS BOY scripts. Any help would be appreciated.
Thanks,
Hovanes Egiyan.