User Profile
Collapse
-
But how does that make python2.5 use imports of python2.3? -
problem with crontab on copmuter with two python version
Hi,
I'm using a computer with a Linux CentOS Operating system, which uses python 2.3 and known to break if python is upgraded to 2.5. Since i need to run 2.5 scripts on that machine, some people in a linux forum recommended to compile 2.5 on that machine and have two python interpreters installed. so now, when i type "python" i still get the 2.3 version, and when i type "python2" i get the new version. to make sure it works... -
-
accesing modules in sibling packages
Hi,
I've create a file hierarchy:
test/
__init__.py
one/
__init__.py
one.py
two/
__init__.py
two.py
all the __init__.py files are empty.
the code in one.py is
the code in two.py isCode:import test.two print two.v
...Code:v=0
-
Getting the content of a URL, after DOM processing and javascript
Is it possible to somehow get the source code of the url, but after DOM processing and the javascript has run.
I'm not talkin on urllib2.urlopen (url).read() since that would give us the same result as viewing the source code on firefox, while what i want is the equivalent to selecting all the page's content by clicking Ctrl+A and them right clicking-> VIew selection source, which is the source of the page after all processing has been... -
Sorry, i should have been more precise - The problem is with making the event repeat at REGULAR INTERVALS, i.e every day, every week etc......Leave a comment:
-
Scheduling a daily event
How can i schedule an event to run daily at a certain time? is there a way to set it in advance?
Thanks, noam -
and what do i do if the module i want to import isn't in the same directory as the main script, but it's not in a package (the directory doesn't contain a __init__.py file) either?Leave a comment:
-
running a script from another script without knowing it's name
Hi,
I want to make a script that will call the run() func of some other scripts who's name the main script will read from a file.
i.e, the main script will:
1. read the file
2. for each <name> in the file:
3. try to call <name>.run()
i.e, if i have a text file:
one
two
the main script will read the text file and then try to call one.run()...
No activity results to display
Show More
Leave a comment: