Skip to content

Instantly share code, notes, and snippets.

@janpipek
Created September 14, 2015 14:41
Show Gist options
  • Save janpipek/e1ef2f99a2d3560337f7 to your computer and use it in GitHub Desktop.
Save janpipek/e1ef2f99a2d3560337f7 to your computer and use it in GitHub Desktop.
How to properly initialize includes file for Geant4 sources
import os
with open("Geant4.10.p01.includes", "w") as f:
for d in os.walk("."):
if len(d[0]) > 0:
f.write(d[0][2:] + "\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment