forked from gacevedobolton/myVTKPythonLibrary
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path__init__.py.py
More file actions
executable file
·30 lines (21 loc) · 1.13 KB
/
__init__.py.py
File metadata and controls
executable file
·30 lines (21 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/python
#coding=utf8
########################################################################
### ###
### Created by Martin Genet, 2012-2016 ###
### ###
### University of California at San Francisco (UCSF), USA ###
### Swiss Federal Institute of Technology (ETH), Zurich, Switzerland ###
### École Polytechnique, Palaiseau, France ###
### ###
########################################################################
import os
########################################################################
os.system("rm -rf *.pyc")
init_file = open("__init__.py", "w")
init_file.write("#this file was generated by __init__.py.py\n\n")
for (dirpath, dirnames, filenames) in os.walk("."):
for filename in filenames:
if filename.endswith(".py") and not filename.startswith("__init__"):
init_file.write("from "+filename[:-3]+" import *\n")
init_file.close()