Invoking profile from command line prevent my sys.path modification
Yaşar Arabacı
yasar11732 at gmail.com
Thu Sep 1 06:51:43 EDT 2011
Hi,
I am new to profile module, so I am sorry if this is an absolute beginner
question. In order to my code to run, I need to add a directory to sys.path.
When I invole python -m profile myfile.py, my code won't work, saying that
the thing that is supposed to be in path, isn't. Code works fine without
profiling. Profiling works if I write it into the file, but I don't prefer
doing that, if that is possible.
--
http://yasar.serveblog.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110901/df3c1341/attachment.html>
More information about the Python-list
mailing list