Replace localkit.bat with py that hardlinks
This commit is contained in:
parent
ece215dfc1
commit
988bfa5cc9
2 changed files with 15 additions and 3 deletions
|
@ -1,3 +0,0 @@
|
||||||
phase1
|
|
||||||
xcopy voussoirkit C:\Python36\Lib\site-packages\voussoirkit /y
|
|
||||||
phase2
|
|
15
_voussoirkit/localkit.py
Normal file
15
_voussoirkit/localkit.py
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
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)
|
Loading…
Reference in a new issue