Re: Path problem with 3.5.1

2016-03-08 Thread Terry Reedy
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? --

Path problem with 3.5.1

2016-03-08 Thread leon_heller--- via Python-list
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

Re: string to path problem

2011-04-04 Thread ecu_jon
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

Re: string to path problem

2011-04-04 Thread Kushal Kumaran
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

Re: string to path problem

2011-04-03 Thread ecu_jon
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

Re: string to path problem

2011-04-03 Thread Chris Rebert
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

string to path problem

2011-04-03 Thread ecu_jon
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

Re: Python open of c:\ path Problem

2008-08-23 Thread Fredrik Lundh
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

Re: Python open of c:\ path Problem

2008-08-23 Thread Tim Golden
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

Python open of c:\ path Problem

2008-08-23 Thread Wayne Watson
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

Re: jpype package, could be path problem

2006-09-20 Thread Rob Wolfe
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

Re: jpype package, could be path problem

2006-09-20 Thread kelemen.viktor
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

Re: jpype package, could be path problem

2006-09-20 Thread Rob Wolfe
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

jpype package, could be path problem

2006-09-20 Thread kelemen.viktor
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/

Re: Path problem

2004-12-13 Thread Lars Yencken
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

Re: Path problem

2004-12-12 Thread Binu K S
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

Re: Path problem

2004-12-12 Thread Lars Yencken
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,

Path problem

2004-12-12 Thread Lars Yencken
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

Re: Path problem

2004-12-12 Thread Binu K S
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