export.py 579 B

123456789101112131415161718192021222324
  1. import os
  2. import file
  3. def clean_sources(sources_path):
  4. print("Clean the sources")
  5. # remove the source code of test module and macros
  6. for file_path in ("modules\\test_methods.bas",
  7. "macros\\test_export.bas",
  8. "macros\\test_import.bas"):
  9. os.remove( file.fjoin(sources_path, file_path) )
  10. def run_export_on(accdb_path):
  11. print("Export the sources from " + accdb_path)
  12. os.system( accdb_path + " /X test_export" )
  13. clean_sources( file.fjoin( file.fdir(accdb_path), "source\\" ) )