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?
--
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,
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