17 lines
364 B
Python
Executable File
17 lines
364 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
Lesscpy run script
|
|
<jtm@robot.is>
|
|
"""
|
|
import sys, os
|
|
|
|
path = os.path.abspath(sys.argv[0])
|
|
while os.path.dirname(path) != path:
|
|
if os.path.exists(os.path.join(path, 'lesscpy', '__init__.py')):
|
|
sys.path.insert(0, path)
|
|
break
|
|
path = os.path.dirname(path)
|
|
|
|
from lesscpy.scripts import compiler
|
|
compiler.run()
|