Skip to content

Commit

Permalink
change Pdfpath.py to handle python3 float division
Browse files Browse the repository at this point in the history
  • Loading branch information
nidak21 committed Aug 18, 2020
1 parent db23865 commit e7d5d6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Pdfpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ def getPdfpath(parentpath, mgiID):

try:
prefix, numeric = mgiID.split(':')
basepath = (int(numeric) / PROJECT_DIR_GROUPING) * PROJECT_DIR_GROUPING
numeric = int(numeric)
basepath = int(numeric / PROJECT_DIR_GROUPING) * PROJECT_DIR_GROUPING
return os.path.join( str(parentpath), str(basepath) )
except:
raise Exception('Failed to obtain pdf path: %s, %s' % (parentpath, mgiID))
Expand Down

0 comments on commit e7d5d6f

Please sign in to comment.