#!/usr/bin/env node

var fs        = require('fs'),
    sys       = require('sys'),
    shjs      = require('shelljs'),
    pecanApp  = require('commander'),
    pecanInfo = require('./package.json');

var pecanLib    = process.env.HOME + '/.pecan',
    pypFolder   = '/processing.py-master',
    pecanConfig = './config.pecan';

pecanApp
  .parse(process.argv);

// Check it project already exists
if (!fs.existsSync(pecanConfig)) {
  console.log('Pecan project doesn\'t exist!');
  // TODO: Prompt user to create a new project
  console.log('Run `$ pecan init` to get started');
  process.exit(1);
} else {
  console.log('Running PyProcessing app.');
  //
  // Hack... need to change this.
  //-----------------------------
  var child = shjs.exec('bash ' + pecanLib + pypFolder + '/processing-py.sh main.py');
  shjs.exit(0);
}

@@ -693,37 +693,8 @@
   //
------------------------------
 %0A  v

Update comment flag