On 3/8/2016 8:47 AM, leon_heller--- via Python-list wrote:
Although I've enabled setting the path when installing 3.5.1 (Win7
x64) I can't run Python from the command line in a terminal window.
It works OK on a Raspberry Pi 3!
If you type 'PATH' at the command prompt, what is the response?
--
Although I've enabled setting the path when installing 3.5.1 (Win7 x64) I can't
run Python from the command line in a terminal window. It works OK on a
Raspberry Pi 3!
Leon
--
Leon Heller
G1HSM
--
https://mail.python.org/mailman/listinfo/python-list
On Apr 4, 5:06 am, Kushal Kumaran
wrote:
> On Mon, Apr 4, 2011 at 9:48 AM, ecu_jon wrote:
> > On Apr 4, 12:17 am, Chris Rebert wrote:
> >> On Sun, Apr 3, 2011 at 8:30 PM, ecu_jon wrote:
> >> > i am writing a basic backup program for my school. so they wanted the
> >> > possibility to be able to
On Mon, Apr 4, 2011 at 9:48 AM, ecu_jon wrote:
> On Apr 4, 12:17 am, Chris Rebert wrote:
>> On Sun, Apr 3, 2011 at 8:30 PM, ecu_jon wrote:
>> > i am writing a basic backup program for my school. so they wanted the
>> > possibility to be able to set source/destination from a config file.
>> > my
On Apr 4, 12:17 am, Chris Rebert wrote:
> On Sun, Apr 3, 2011 at 8:30 PM, ecu_jon wrote:
> > i am writing a basic backup program for my school. so they wanted the
> > possibility to be able to set source/destination from a config file.
> > my source/destination was fine before, i would build it u
On Sun, Apr 3, 2011 at 8:30 PM, ecu_jon wrote:
> i am writing a basic backup program for my school. so they wanted the
> possibility to be able to set source/destination from a config file.
> my source/destination was fine before, i would build it up with
> functions, like 1 that got the user-name
i am writing a basic backup program for my school. so they wanted the
possibility to be able to set source/destination from a config file.
my source/destination was fine before, i would build it up with
functions, like 1 that got the user-name, and put it all together with
os.path.join. but if they
Wayne Watson wrote:
Python doesn't like this:
junkfile = open('c:\tmp\junkpythonfile','w')
I get
junkfile = open('c:\tmp\junkpythonfile','w')
IOError: [Errno 2] No such file or directory: 'c:\tmp\\junkpythonfile'
"\" is used as an escape character in string literals, so "\t" doesn't
mea
Wayne Watson wrote:
Python doesn't like this:
junkfile = open('c:\tmp\junkpythonfile','w')
I get
junkfile = open('c:\tmp\junkpythonfile','w')
IOError: [Errno 2] No such file or directory: 'c:\tmp\\junkpythonfile'
The clue, if you needed one, is there in that traceback.
Notice the *single
Title: Signature.html
Python doesn't like this:
junkfile = open('c:\tmp\junkpythonfile','w')
I get
junkfile = open('c:\tmp\junkpythonfile','w')
IOError: [Errno 2] No such file or directory: 'c:\tmp\\junkpythonfile'
This problematic segment is just a hack of a similar statement which
kelemen.viktor wrote:
> Hi
>
> thanks for your suggestions
>
> ive modified the sample code
You've modified it incorrect.
> "
> import jpype
> from jpype import *
You should use "import jpype" OR "from jpype import *" (not
recommended)
but NOT BOTH.
> jpype.startJVM('/usr/lib/jvm/java-1.5.0-su
Hi
thanks for your suggestions
ive modified the sample code
"
import jpype
from jpype import *
jpype.startJVM('/usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre/lib/i386/client/libjvm.so','-ea')
java.lang.System.out.println("hello world")
shutdownJVM()
"
and its working. It seems to be quite strange.
W
kelemen.viktor wrote:
> everything worked correctly but when i wrote a short script:
> "
> from jpype import *
>
> jpype.startJVM('/usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre/lib/i386/client/libjvm.so','-ea')
> java.lang.System.out.println("hello world")
> shutdownJVM()
> "
> and tried to run it thi
Hello!
Im a quite newbie in the python world.
I have some problem with packages, i installed the jpype package
according to its intructions.
To test ive written:
> python
>>> import jpype
everything worked correctly but when i wrote a short script:
"
from jpype import *
jpype.startJVM('/usr/lib/
On 13/12/2004, at 6:39 PM, Binu K S wrote:
sys.path[0] will contain the path to the script.
From the sys module documentation:
"As initialized upon program startup, the first item of this list,
path[0], is the directory containing the script that was used to
invoke the Python interpreter. If the sc
Hi Lars,
sys.path[0] will contain the path to the script.
>From the sys module documentation:
"As initialized upon program startup, the first item of this list,
path[0], is the directory containing the script that was used to
invoke the Python interpreter. If the script directory is not
available
Hi Binu,
On 13/12/2004, at 4:11 PM, Binu K S wrote:
This should get you the module's path:
import sys
sys.modules['rpy'].__file__
Unfortunately it's not the rpy module itself whose path I'm looking
for. It's the absolute path of my module that I've created.
If my script was called runRScript.py,
Hello,
I'm working on a project where my python modules are using persistent
files in the same directory. As an example, we're using rpy, so a piece
of python code might read:
from rpy import *
rScript = 'myScript.r'
r.source(rScript)
Now the problem with this is that whe
This should get you the module's path:
import sys
sys.modules['rpy'].__file__
On Mon, 13 Dec 2004 15:48:29 +1100, Lars Yencken <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm working on a project where my python modules are using persistent
> files in the same directory. As an example, we're using r
19 matches
Mail list logo