Skip to content

Commit

Permalink
Merge pull request #68 from l3iggs/patch-1
Browse files Browse the repository at this point in the history
fixes #2358
  • Loading branch information
yorikvanhavre committed Dec 10, 2015
2 parents d65c960 + 4901553 commit b7a9bf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mod/OpenSCAD/OpenSCADUtils.py
Expand Up @@ -87,7 +87,8 @@ def workaroundforissue128needed():
for versions <= 2012.06.23 to the current working dir
for versions above to the inputfile dir
see https://github.com/openscad/openscad/issues/128'''
vdate=getopenscadversion().split(' ')[2].split('.')
vdate=getopenscadversion().split('-')[0]
vdate=vdate.split(' ')[2].split('.')
year,mon=int(vdate[0]),int(vdate[1])
return (year<2012 or (year==2012 and (mon <6 or (mon == 6 and \
(len(vdate)<3 or int(vdate[2]) <=23)))))
Expand Down

0 comments on commit b7a9bf9

Please sign in to comment.