Created
September 1, 2015 22:06
-
-
Save art-solopov/810c0a99ab42160a7d92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def compile_stylus(): | |
def start_compiler(): | |
# Forming args | |
args.insert(0, os.path.join(_node_bin_path, 'stylus')) | |
with TemporaryDirectory(suffix='styl') as tmpdir: | |
args.append(tmpdir) | |
sp.call(args) | |
sh.copyfile(os.path.join(tmpdir, 'app.css'), | |
os.path.join(css_path, '.app_styl.css')) | |
p = mp.Process(target=start_compiler) | |
p.start() | |
return p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment