Permalink
Browse files

Fix loading of .csscomb.json

  • Loading branch information...
1 parent f1bd31f commit f99ccd9967f1bfa7438be64dc03180ff4f020db5 @chernetsov0 chernetsov0 committed with tonyganch Dec 8, 2014
Showing with 4 additions and 1 deletion.
  1. +2 −1 CSScomb.py
  2. +2 −0 csscomb.js
View
@@ -38,8 +38,9 @@ def run(self, edit):
def comb(self, css, syntax, config):
config = json.dumps(config)
+ folder = os.path.dirname(self.view.file_name())
try:
- p = Popen(['node', COMB_PATH] + [syntax, config],
+ p = Popen(['node', COMB_PATH] + [syntax, config, folder],
stdout=PIPE, stdin=PIPE, stderr=PIPE,
env=self.get_env(), shell=self.is_windows())
except OSError:
View
@@ -19,6 +19,8 @@ process.stdin.on('end', function () {
config = null;
}
+ process.chdir(process.argv[4]);
+
config = Comb.getCustomConfig() ||
config ||
Comb.getConfig('csscomb');

0 comments on commit f99ccd9

Please sign in to comment.