--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/7fe466f0-9628-4b31-8ed8-0e872a94974d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
import os.path path = 'c:\\temp' class foo(unicode): isdir = os.path.isdir foo(path).isdir() # 2.6.4 # True # 2.7.3 # TypeError: _isdir() takes exactly 1 argument (0 given) # print os.path.isdir(path) # 2.6.4 # True # 2.7.3 # True
path = 'path/to/file'if os.path.isdir(path):print "Yes it is ! "This didnt work for you ?
On Thu, Jan 9, 2014 at 1:47 PM, Jesse Capper <jesse....@gmail.com> wrote:
Loading the same path.py module into a 2.6.4 and 2.7.3 session produces different results when calling Path(path/to/file).isdir()2.6.4 works as expected - outputs True or False2.7.3 raises a TypeError: TypeError: _isdir() takes exactly 1 argument (0 given)Anyone know why the behavior changed?This is an easy manual fix except that we also use pymel which ships with its own path.py module that pymel calls return. Replacing that on each user's machine is more involved and I was hoping for an easier solution.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/7fe466f0-9628-4b31-8ed8-0e872a94974d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
----:: Kurian ::--
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/485a5536-5a89-47fb-8d6e-729300f258ae%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANESWi3Le6GZ2QXzgyaHRoyPNRFYq%3DN-0ZH9JruUTmVdx3TxPw%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/7fe466f0-9628-4b31-8ed8-0e872a94974d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
----:: Kurian ::--
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/485a5536-5a89-47fb-8d6e-729300f258ae%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
Are you getting the same error using the pymel that ships with 2014?
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/7fe466f0-9628-4b31-8ed8-0e872a94974d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
----:: Kurian ::--
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.