Hi Nora,
do you mean copying or moving?
"If I copy c:\python25\nora.py to a temporary folder on the c:\, for
example c:\MyWork\nora.py and modify c:\MyWork\nora.py"
If you want to be sure that the file in the current directory gets
used, remove all files that have the same name from directories that
are in your PYTHONPATH ("import sys; sys.path").
If you execute a python module, it's location will be added at the
first place into the PYHTONPATH.
I'm not entirely sure, but I think that if you have a file with the
same name in another directory in your PYTHONPATH (for example
'c:\python25'), it may get used instead of the file that has been
loaded into memory earlier.
So if you want to be safe, remove your file from the folder "c:\python25".
You should treat this as a system folder and don't store any files in it.
Best Regards,
Jesaja
On Fri, Nov 28, 2008 at 8:18 PM, Nora <[EMAIL PROTECTED]> wrote:
>
> Hi Jesaja,
> I have tried what you proposed but it didn't work.
> Now, I have done some more expermenting and found the following:
>
> If I copy c:\python25\nora.py to a temporary folder on the c:\, for
> example c:\MyWork\nora.py and modify c:\MyWork\nora.py ...then if you
> copy it anywhere, there is no problem. The problem occurs only if you
> tend to copy a file from c:\python25 straight to google_appengine.
>
> Any clues?
>
> Thanks a lot.
>
> On Nov 28, 5:16 pm, "Jesaja Everling" <[EMAIL PROTECTED]> wrote:
>> Hi Nora,
>>
>> the nora.py in c:\python25 will always be used, because it is in your
>> path, and will get imported before your modified file.
>> ("import sys; sys.path").
>> I would suggest to just move the file c:\python25\nora.py out of the
>> way, into another folder which is not in your PATH.
>>
>>
>>
>> On Fri, Nov 28, 2008 at 5:39 PM, Nora <[EMAIL PROTECTED]> wrote:
>>
>> > Hello,
>> > Well. I have a c:\python25 folder where the python run time is
>> > installed. I will give a more precise example, may be this will help.
>> > Say I have a file called 'nora.py' saved in the folder c:\python25...
>> > so now my file is located in c:\python25\nora.py
>>
>> > I started to develope a website, so I created a new folder for my
>> > website under c:\program files\google\google_appengine. and named it
>> > NoraWebSite. Now I have c:\program files\google\google_appengine
>> > \NoraWebSite\
>>
>> > I copied nora.py to c:\program files\google\google_appengine
>> > \NoraWebSite\
>>
>> > I will definitly need to do some modifications to nora.py. Now, I
>> > have two nora.py files in two different locations and theortically
>> > speaking, they contain different data to some extent.
>>
>> > The problem is: if I try to copy the modified nora.py to another
>> > location, I end up having the first nora.py!!!!!
>> > It seems that there is an inheritance somehow....if I try to copy the
>> > child, I end up with the parent file.
>>
>> > I hope this is clearer now.
>>
>> > Thank you very much.
>>
>> > On Nov 28, 4:02 pm, "Jesaja Everling" <[EMAIL PROTECTED]> wrote:
>> >> Hello Nora,
>>
>> >> to be honest, I don't really understand your problem.
>> >> Did you rename the folder "python25" to "myFolder"?
>> >> I don't understand what you mean by "the system copies the original
>> >> file saved in 'python25'.?
>> >> Is the folder python25 still around?
>> >> What files are inside this folder?
>> >> Maybe you have still referenced the folder in your app.yaml?
>> >> I wouldn't name any folder "python25", because that's the folder where
>> >> your python runtime is stored, at least if you have python 2.5
>> >> installed (c:\python25).
>> >> This doesn't have to lead to problems, but it can, because this folder
>> >> will be in your path...
>>
>> >> Best Regards,
>>
>> >> Jesaja Everling
>>
>> >> On Fri, Nov 28, 2008 at 4:04 PM, Nora <[EMAIL PROTECTED]> wrote:
>>
>> >> > Hello,
>> >> > I am working on windows. I had some code developed in python in a
>> >> > directory called 'python25'. I have copied this code to a new folder
>> >> > on the google_appengine folder . So, now I have all my updated files
>> >> > on :
>>
>> >> > c:\program files\googles\google_appengine\myFolder
>>
>> >> > The problem is, whenever I want to copy any file in 'myFolder' to the
>> >> > any other folder, the system copies the original file saved in
>> >> > 'python25', not the updated file on google_appengine folder.
>>
>> >> > I don't know why this is happening and whether google_appengine SDK
>> >> > sets certain file permissions when it is installed or what?
>>
>> >> > Please, suggest any clues as this is crucial for my website to be
>> >> > published, otherwise, I won't be able to copy my website files to
>> >> > google server (as the very old version saved on python25 directory
>> >> > will be used!!)
>>
>> >> > Thank you very much.- Hide quoted text -
>>
>> >> - Show quoted text -- Hide quoted text -
>>
>> - Show quoted text -
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---