>>> import g4
>>> g4.systs()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'systs'
Why is that ?
The code works ok from shell
>>> import time
>>> def systs(): return str(time.localtime()[5])
>>> systs()
'18'
g4.py
-------
import os
import sys
import time
def systs(): return str(time.localtime()[5])