On Oct 10, 11:44 pm, Benjamin Kaplan wrote:
> On Sun, Oct 10, 2010 at 5:29 PM, tinauser wrote:
> > On Oct 10, 6:54 am, Lawrence D'Oliveiro > central.gen.new_zealand> wrote:
> >> In message
> >> ,
>
> >> tinauser wrote:
> >> > now,the file will be opened only if i give the full path, not if i
> >
On Sun, Oct 10, 2010 at 5:29 PM, tinauser wrote:
> On Oct 10, 6:54 am, Lawrence D'Oliveiro central.gen.new_zealand> wrote:
>> In message
>> ,
>>
>> tinauser wrote:
>> > now,the file will be opened only if i give the full path, not if i
>> > give only the name of the file, although the folder is i
On Oct 10, 6:54 am, Lawrence D'Oliveiro wrote:
> In message
> ,
>
> tinauser wrote:
> > now,the file will be opened only if i give the full path, not if i
> > give only the name of the file, although the folder is in the path.
> > what am I missing?
>
> The fact that sys.path is not used for that.
In message
,
tinauser wrote:
> now,the file will be opened only if i give the full path, not if i
> give only the name of the file, although the folder is in the path.
> what am I missing?
The fact that sys.path is not used for that.
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Oct 8, 2010 at 10:41 AM, tinauser wrote:
> hallo, i'm sorry if the question is very stupid, but i cannot
> understand what i'm doing wrong here.
>
> i have this myModule.py
>
> class Starter:
>def init(self,num):
>print "hithere!"
>print "the answer is ",num
>
On Fri, Oct 8, 2010 at 3:39 PM, Jason Swails wrote:
>
>
> On Fri, Oct 8, 2010 at 10:16 AM, tinauser wrote:
>
>> hi, sorry if it is a stupid qustio,but i cannot figure out where's the
>> problem.
>> i've a simpleModule:
>> class Starter:
>>def init(self,num):
>>
>
> If you want this to execut
On Fri, Oct 8, 2010 at 10:16 AM, tinauser wrote:
> hi, sorry if it is a stupid qustio,but i cannot figure out where's the
> problem.
> i've a simpleModule:
> class Starter:
>def init(self,num):
>
If you want this to execute upon declaring an instance of Starter, rename
this as __init__.
>
On 10/8/2010 7:16 AM tinauser said...
hi, sorry if it is a stupid qustio,but i cannot figure out where's the
problem.
i've a simpleModule:
class Starter:
def init(self,num):
print "hithere!"
print "the answer is ",num
import sys,os
print "path:",sys.path
On Fri, 8 Oct 2010 07:16:13 -0700 (PDT) tinauser
wrote:
> on mac I get an error if i do not give the full path of initfile.py
> (commented out in the code above);
> on windows i did not have this problem.
> Am I missing anything?
open("initfile.py") opens initfile.py in the current working direc