2017-04-01 04:54:40 +00:00
|
|
|
import os
|
|
|
|
|
|
|
|
import phase1
|
|
|
|
|
2017-11-19 19:22:12 +00:00
|
|
|
libdir = 'D:\\Git\\personal\\privatelib\\voussoirkit'
|
2017-04-01 04:54:40 +00:00
|
|
|
os.makedirs(libdir, exist_ok=True)
|
|
|
|
|
|
|
|
initfile = os.path.join(libdir, '__init__.py')
|
|
|
|
open(initfile, 'w').close()
|
|
|
|
|
|
|
|
for path in phase1.PATHS:
|
|
|
|
libpath = os.path.join(libdir, os.path.basename(path))
|
|
|
|
if not os.path.exists(libpath):
|
|
|
|
print(libpath)
|
|
|
|
os.link(path, libpath)
|