En Thu, 01 Sep 2011 07:51:43 -0300, Yaşar Arabacı <yasar11...@gmail.com> escribió:

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.

You may set the PYTHONPATH environment variable, just for the profiling session.

http://docs.python.org/install/index.html#modifying-python-s-search-path

--
Gabriel Genellina

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to