change the other one too god im dumb
This commit is contained in:
parent
fecfb7da62
commit
26902bd56e
|
@ -1,15 +1,14 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import os, sys
|
import os
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
if not os.path.exists('./_layouts'):
|
if not os.path.exists('./_layouts'):
|
||||||
raise OSError('the _layouts directory doesnt exist! clone again pls :)')
|
raise OSError('the _layouts directory doesnt exist! clone again pls :)')
|
||||||
try:
|
try:
|
||||||
os.system('cd _layouts && yarn')
|
os.system('cd _layouts && yarn')
|
||||||
except OSError:
|
except OSError:
|
||||||
print("""
|
raise("""
|
||||||
*for your own sanity just install yarn:*
|
*for your own sanity just install yarn:*
|
||||||
`npm i -g yarn@latest`
|
`npm i -g yarn@latest`
|
||||||
""")
|
""")
|
||||||
sys.exit(130)
|
|
||||||
os.system('cd _layouts && yarn && yarn dev')
|
os.system('cd _layouts && yarn && yarn dev')
|
||||||
|
|
Loading…
Reference in New Issue