Hi,
I've recently started another TurboGears project, this time using 2.3.9,
and wanted to debug it using PyCharm. I'm working on a Windows 7 machine.
I didn't know what to write under "script" in the run configuration, it
didn't accept "gearbox.exe" from my virtualenv, because it wanted a python
script..
I've looked at some older project that I had and saw that I had a file
called "*gearbox-script.py*" in my "\EnvName\Scripts" folder. In that old
project I used to run that script to debug with PyCharm. I didn't write
that script, I think easy_install created it, not sure.
#!C:\Users\MYUSER\Envs\EnvName\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'gearbox==0.0.6','console_scripts','gearbox'
__requires__ = 'gearbox==0.0.6'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('gearbox==0.0.6', 'console_scripts', 'gearbox')()
)
I've copied the file to my current project root directory, removed the
comments, and update gearbox version to 0.1.1
Now I'm able to use that script in my run configuration and debug my app.
My run configuration are:
Script: project\gearbox-script.py
Script parameters: serve –reload –debug
It works great and I'm able to debug, and also auto reaload when I change
my code.
I wanted to ask -
what is that script and why did easy_install created it in my old project
but In my newer project it didn't?
What is "load entry points"?
Are there different run configurations that you are using to debug with
pycharm? (on windows 7..)
Thanks
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.