Skip to content

Instantly share code, notes, and snippets.

@art-solopov
Created September 1, 2015 22:06
Show Gist options
  • Save art-solopov/810c0a99ab42160a7d92 to your computer and use it in GitHub Desktop.
Save art-solopov/810c0a99ab42160a7d92 to your computer and use it in GitHub Desktop.
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