Your ROOT_URL in app.ini is https://git.hpc.odu.edu/ but you are visiting https://git.wahab.hpc.odu.edu/wirawan0/wpylib/commit/1674bfd2560de067b11ce390b3dd7299f782feb3?style=split&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
9 additions and
1 deletions
interactive_tools.py
@ -64,15 +64,23 @@ def detect_interactive(global_ns=None):
* For ipython , see if " __IPYTHON__ " is defined in the user ' s global
* For ipython , see if " __IPYTHON__ " is defined in the user ' s global
namespace .
namespace .
* For " python -i " invocation , sys . flags . interactive will be set to True .
* For " python -i " invocation , sys . flags . interactive will be set to True .
( python 2.6 + only )
* For vanilla " python " invocation with no argument , then sys . ps1
* For vanilla " python " invocation with no argument , then sys . ps1
variable exists .
variable exists .
"""
"""
def is_python_i ( ) :
# This approach only works for Python 2.6+
try :
return sys . flags . interactive
except :
return False
( g , b ) = get_global_namespace_ ( global_ns )
( g , b ) = get_global_namespace_ ( global_ns )
if " __IPYTHON__ " in g or hasattr ( b , " __IPYTHON__ " ) :
if " __IPYTHON__ " in g or hasattr ( b , " __IPYTHON__ " ) :
return {
return {
' session ' : ' ipython ' ,
' session ' : ' ipython ' ,
}
}
elif sys . flags . interactive :
elif is_python_i ( ) : # sys.flags.interactive :
return {
return {
' session ' : ' python -i ' ,
' session ' : ' python -i ' ,
}
}