Hi learningpython,
You need pcapy ( http://oss.coresecurity.com/projects/pcapy.html )
Dmitry V Selitsky, t o r m o z @ g m x . n e t, Python/Web/Database developer
http://www.siafoo.net/article/52 `Python Tips, Tricks, and Hacks`
Dmitry V Selitsky, t o r m o z @ g m x . n e t, Python/Web/Database developer http://www.linkedin.com/in/dvska
Such web frameworks as
- Django
- Pylons
- Web.py
and lot of detached template engines
are currently popular.
Dmitry V Selitsky, t o r m o z @ g m x . n e t, Python/Database developer
You are right.
http://66.249.93.104/search?q=cache:1ZeNAtLtA_UJ:docs.python.org/lib/os-path.html+sep&ct=clnk&cd=1
Dmitry V Selitsky, t o r m o z @ g m x . n e t
Imagine, that your program organized in such dirs:
/
home/
my_py_project/
images/
util/
main.py
To define from main.py the relative path to [images] directory, use
import os
staticDirPath = os.path.dirname(__file__) + os.sep + 'images'
Dmitry V Selitsky, t...
The fastest solution is to hack IDLE -- edit the IOBinding.py ( in my Python 2.4.3 installation C:\python24\Lib\idlelib\IOBinding.py ):
change lines 181 & 182 to
filename = ".py" # old value is ""
dirname = "e:\\" # old value is None; change e:\ to directory of your choice
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.