On Tue, Jul 8, 2008 at 3:33 AM, Ryo <[EMAIL PROTECTED]> wrote:
>
> according to the documentation i've been reading, i should be able to
> run commands such as "tg-admin sql create" , "tg-admin shell" or "tg-
> admin toolbox" from inside my project directory but i can only get
> these commands to work from the following directory-> "Python25\Scripts
> \" which is the parent directory of my project, where all the main
> turbogears files are. Im not sure how to make these tg-admin
> functions available in other directories? Also the only reason that
> my project directory is a sub-directory of "\Scripts\" is because i
> couldnt get the project initiation command "tg-admin quickstart" to
> work anywhere but in this directory.
>
You seem to be working on Windows. To have an exe available on the
command line you need to edit de PATH variable to include the
python25\scripts directory to it.
For this do: right-click on "my computer" --> properties --> advanced
--> Envirronment Variables --> system variables (or user if you want
to change the path only for your user) --> click on Path --> Edit -->
Add ";<yourpath>" at the end of the path variable value.
Then start a _new_ console. You should now be able to run any exe
script present in the scripts dir of python from your command line.
Alternatively you could use the full filename of the exe you want to
launch each time ("c:\Python25\Scripts\tg-admin.exe")
Florent.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---