however when i do reload(modolena me) i only get this...
Expand|Select|Wrap|Line Numbers
- >>> reload(eps)
- <module 'eps' from 'eps.pyc'>
either way when i try to get a variable out of eps, that is from eps import stuff
stuff is the same (when it should be different) from when i originally imported eps, not what it would be after i reloaded it. In between the import and the reload i changed the text file that data is drawn from (see below).
any help would be much appreciated.
-pc
original problem:
When I'm testing a script in PythonWin after I import it once, it won't recognize some changes i've made sometimes. Like if its a script to do a web scrape...
the 1st time i try import testscript, it'll take the couple of seconds that is needed to do the scrape. thats good.
Then lets say i change a part of the scrape. For example one thing i often do is have a text file where i have names. My script will take a name out of the text file hten use it in a web address in order to do a scrape. for example
i'll have this pageroot "http://finance.google. com/finance?fstype= ii&q="
then i'll take a name "ge" from a text file and use it to find this web page to go to ... "http://finance.google. com/finance?fstype= ii&q=ge".
if i just import testscript again, then it won't recognize that i've changed the web address that i'm going to.
Does that make sense, should that happen? if so, how cna i get around it w/o closing and reopening PythonWin.
thanks