else/_voussoirkit/localkit.py
2017-03-31 21:54:40 -07:00

15 lines
370 B
Python

import os
import phase1
libdir = 'C:\\python36\\lib\\site-packages\\voussoirkit'
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)