from scal2.time_utils import getUtcOffsetByJd, getUtcOffsetCurrent, getEpochFromJd from scal2.os_utils import kill, goodkill from scal2.utils import myRaise #from scal2 import event_lib## needs core!! FIXME from threading import Timer #if 'gtk' in sys.modules: from pray_times_gtk import * #else: # from pray_times_qt import * #################################################### confPath = join(plugConfDir, 'pray_times') localTz = get_localzone() ####################### Methods and Classes ################## def readLocationData(): lines = open(dataDir+'/locations.txt').read().split('\n') cityData = [] country = '' for l in lines: p = l.split('\t') if len(p)<2: #print(p) continue if p[0]=='': if p[1]=='':
__file__ except NameError: import inspect, scal2 __file__ = join(os.path.dirname(inspect.getfile(scal2)), 'core.py') VERSION = '2.4.6' BRANCH = join(rootDir, 'branch') APP_NAME = 'starcal2' APP_DESC = 'StarCalendar' COMMAND = 'starcal2' homePage = 'http://ilius.github.io/starcal/' osName = getOsName() userDisplayName = getUserDisplayName() #print('--------- Hello %s'%userDisplayName) localTz = get_localzone() #print('__file__ = %r'%__file__) #print('__name__ = %r'%__name__) #print('__package__ = %r'%__package__) #print('__builtins__',) #pprint(__builtins__) #print #print('core.dir:') #pprint(dir()) #print('sys.modules =',) #pprint(sys.modules) #__plugin_api_get__ = [ # 'VERSION', 'APP_NAME', 'APP_DESC', 'COMMAND', 'homePage', 'osName', 'userDisplayName'