Skip to content

Commit

Permalink
add better support for absolute paths
Browse files Browse the repository at this point in the history
  • Loading branch information
tylorr committed Nov 23, 2013
1 parent a53f3a7 commit 2c8afe2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ The resulting command would look something like this:
binpack sprites/character.png sprites/bullet.png -o atlas
```

## API

## License
Copyright (c) 2013 Tylor Reynolds
Licensed under the MIT license.
7 changes: 5 additions & 2 deletions assetman.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,11 @@ var generateGlobLists = function(ninja, filename, patternMap, path) {

// Main generate function
var generate = function(srcPath) {
srcPath = srcPath || '.';
srcPath = path.join(srcPath);
if (srcPath && srcPath !== '.') {
srcPath = path.relative(process.cwd(), srcPath);
} else {
srcPath = '.';
}

var ninja = ninjaGen(),
assetConfigPath = path.join(srcPath, 'assets.js'),
Expand Down

0 comments on commit 2c8afe2

Please sign in to comment.