>> The dot (.) command is used to source a file, It executes Unix like commands 
>> in bin/activate. Not relevant when  you're on windows. >> Is there a .bat or 
>> .cmd file instead?
 
oh i had no idea.. i found the activate file inside a folder name Scripts 
(instead of bin) and and tried the same command, but now i get this error:
 
  File "Scripts/activate", line 4
    deactivate () {
                  ^
SyntaxError: invalid syntax
 
i looked at the activate file which doesnt have an extension. the code is not 
in python so im trying to figure out code i have no clue where its from. that 
line where the error is contains the javascript like braces after functions {} 
maybe thats it but it seems this tutorial doesnt want me to study it:(
Here is some of the code:
 
deactivate () {
    unset pydoc
    # reset old environment variables
    if [ -n "$_OLD_VIRTUAL_PATH" ] ; then
        PATH="$_OLD_VIRTUAL_PATH"
        export PATH
        unset _OLD_VIRTUAL_PATH
    fi
    if [ -n "$_OLD_VIRTUAL_PYTHONHOME" ] ; then
        PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME"
        export PYTHONHOME
        unset _OLD_VIRTUAL_PYTHONHOME
 
what worries me is that it has comments, and on each comment this  is already 
there: 
 
# This should detect bash and zsh, which have a hash command that must
# be called to get it to forget past commands.  Without forgetting
# past commands the $PATH changes we made may not be respected
 
but it still doesnt explain the invalid syntax on line 4:(
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to