Fix to handle mx.DateTime.strptime on win32 for issue378
This commit is contained in:
1 parent
84d8181547
commit
f68a8c7aff
1 file changed
+6
@@ -16,6 +16,8 @@ from config import CONFIG, CURRENT_DIR, PREFIX, PIXMAPS_DIR, TRYTON_ICON
|
||||
import translate
|
||||
import gui
|
||||
import traceback
|
||||
import mx.DateTime
|
||||
import time
|
||||
|
||||
|
||||
class TrytonClient(object):
|
||||
@@ -42,6 +44,10 @@ class TrytonClient(object):
|
||||
else:
|
||||
logging.getLogger().setLevel(logging.ERROR)
|
||||
|
||||
if not hasattr(mx.DateTime, 'strptime'):
|
||||
mx.DateTime.strptime = lambda x, y: mx.DateTime.mktime(
|
||||
time.strptime(x, y))
|
||||
|
||||
factory = gtk.IconFactory()
|
||||
factory.add_default()
|
||||
|
||||
|
||||
Reference in new issue
Block a user