Skip to content

Commit

Permalink
Undefined name: long was removed in Python 3 (wonderworks-software#75)
Browse files Browse the repository at this point in the history
__long__ was removed in Python 3 because all __int__ are of infinite precision.
  • Loading branch information
cclauss authored and IlgarLunin committed Jan 8, 2020
1 parent e006427 commit 7acbad3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions integrations/maya/maya_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7acbad3

Please sign in to comment.