Created
September 14, 2015 14:41
-
-
Save janpipek/e1ef2f99a2d3560337f7 to your computer and use it in GitHub Desktop.
How to properly initialize includes file for Geant4 sources
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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