From 2cf7f034675dacf86986120a51f88d2cc6f82963 Mon Sep 17 00:00:00 2001 From: Jonathan Wohl Date: Tue, 21 Jun 2016 21:35:38 -0400 Subject: [PATCH] Fix start command path --- extension.js | 2 +- test/extension.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extension.js b/extension.js index e522d88..9534553 100644 --- a/extension.js +++ b/extension.js @@ -23,7 +23,7 @@ module.exports = new Extension({ // make sure the file is executable fs.chmodSync(tokens.$filepath, 0755); // start command just executes the file ($filepath is absolute, includes leading slash) - return '.$filepath'; + return '$filepath'; }, // how do we stop this type of artwork? 'end_command': 'sudo pkill -f $filename' diff --git a/test/extension.spec.js b/test/extension.spec.js index 03f6bdf..3ae9ccf 100644 --- a/test/extension.spec.js +++ b/test/extension.spec.js @@ -42,7 +42,7 @@ describe('start_command', function() { it('should return a string', function() { var format = OpenFrameworksExtension.props.format, command = format.start_command(null, tokens), - expected = '.$filepath'; + expected = '$filepath'; assert(typeof command === 'string'); assert.equal(command, expected);