Skip to content

Commit

Permalink
added try: except: to avoid errors when 'doc' folder is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
b45ch1 committed Mar 11, 2011
1 parent a2217a3 commit eb7c70f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions setup.template
Expand Up @@ -83,9 +83,13 @@ if not build_source_dist :
print 'Did not successfully retrieve the proper verison of CppAD'
exit(1)
# ---------------------------------------------------------------------
doc_files = os.listdir('doc')
for i in range( len(doc_files) ) :
doc_files[i] = 'doc/' + doc_files[i]
try:
doc_files = os.listdir('doc')
for i in range( len(doc_files) ):
doc_files[i] = 'doc/' + doc_files[i]

except:
doc_files = []
#
brad_email = 'bradbell @ seanet dot com'
sebastian_email = 'sebastian dot walter @ gmail dot com'
Expand Down

0 comments on commit eb7c70f

Please sign in to comment.