From 7acbad37b019fa3541a4e9878aa219f5ae886bc6 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 8 Jan 2020 07:58:09 +0100 Subject: [PATCH] Undefined name: long was removed in Python 3 (#75) __long__ was removed in Python 3 because all __int__ are of infinite precision. --- integrations/maya/maya_launcher.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/integrations/maya/maya_launcher.py b/integrations/maya/maya_launcher.py index 2fe759494..c882deb4e 100644 --- a/integrations/maya/maya_launcher.py +++ b/integrations/maya/maya_launcher.py @@ -4,6 +4,11 @@ from PyFlow.App import PyFlow from PySide2.QtWidgets import QWidget +try: + long # Python 2 +except NameError: + long = int # Python 3 + ptvsd.enable_attach(address=('0.0.0.0', 3000), redirect_output=True) mayaMainWindowPtr = omui.MQtUtil.mainWindow()