Skip to content
Snippets Groups Projects
Commit 9fcac3bd authored by juergen's avatar juergen
Browse files

adding check for existing scratch dir when creating webpage

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1839 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent d6de34fe
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,10 @@ p.add_option('--run_doxygen','-r',help='run doxygen with Doxyfile given as'+ ...@@ -32,7 +32,10 @@ p.add_option('--run_doxygen','-r',help='run doxygen with Doxyfile given as'+
'argument') 'argument')
opts, args=p.parse_args() opts, args=p.parse_args()
if os.path.exists('../modules/scratch') or \
os.path.exists('../modules/dng_scratch'):
print '\nERROR ...exiting!\n\nPlease generate webpage from public checkout\n'
os._exit(-1)
if not opts.base_url: if not opts.base_url:
opts.base_url='file://%s' % os.path.abspath(opts.output_dir) opts.base_url='file://%s' % os.path.abspath(opts.output_dir)
scaffold_file=codecs.open('raw/scaffold.html', mode='r', scaffold_file=codecs.open('raw/scaffold.html', mode='r',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment