
import sys
import csnGUIHandler
import csnGUIOptions
import csnGenerator

# Check command line arguments
if len(sys.argv) != 3:
    sys.exit("Error: not enough arguments. You need to provide an option and a configuration file.")

# Command line inputs
options_file = sys.argv[1]
config_file = sys.argv[2]

# Create GUI handler
handler = csnGUIHandler.Handler()
# Read options
options = csnGUIOptions.Options()
options.Load( options_file )
# Read settings
settings = csnGenerator.Settings()
settings.Load( config_file )
# Set the options
handler.SetOptions( options )
# Configure the project with the settings
if settings.instance == "thirdParty":
    res = handler.ConfigureThirdPartyFolder(settings)
else:
    res = handler.ConfigureProjectToBinFolder( settings, 1 )
sys.exit(res)



import sys
import csnGUIHandler
import csnGUIOptions
import csnGenerator

# Check command line arguments
if len(sys.argv) != 3:
    sys.exit("Error: not enough arguments. You need to provide an option and a configuration file.")

# Command line inputs
options_file = sys.argv[1]
config_file = sys.argv[2]

# Create GUI handler
handler = csnGUIHandler.Handler()
# Read options
options = csnGUIOptions.Options()
options.Load( options_file )
# Read settings
settings = csnGenerator.Settings()
settings.Load( config_file )
# Set the options
handler.SetOptions( options )
# Configure the project with the settings
if settings.instance == "thirdParty":
    res = handler.ConfigureThirdPartyFolder(settings)
else:
    res = handler.ConfigureProjectToBinFolder( settings, 1 )
# exit with error if there was a problem
if res == false:
  sys.exit(1)


Exit with the proper value.
Exit with the proper value.

git-svn-id: a26c1b3dc012bc7b166f1b96505d8277332098eb@265 9ffc3505-93cb-cd4b-9e5d-8a77f6415fcf

  
  import sys
  import csnGUIHandler
  import csnGUIOptions
  import csnGenerator
  
  # Check command line arguments
  if len(sys.argv) != 3:
      sys.exit("Error: not enough arguments. You need to provide an option and a configuration file.")
  
  # Command line inputs
  options_file = sys.argv[1]
  config_file = sys.argv[2]
  
  # Create GUI handler
  handler = csnGUIHandler.Handler()
  # Read options
  options = csnGUIOptions.Options()
  options.Load( options_file )
  # Read settings
  settings = csnGenerator.Settings()
  settings.Load( config_file )
  # Set the options
  handler.SetOptions( options )
  # Configure the project with the settings
  if settings.instance == "thirdParty":
      res = handler.ConfigureThirdPartyFolder(settings)
  else:
      res = handler.ConfigureProjectToBinFolder( settings, 1 )
+ # exit with error if there was a problem
+ if res == false:
- sys.exit(res)
+   sys.exit(1)
  
  
Exit with the proper value.
## Code Before:

import sys
import csnGUIHandler
import csnGUIOptions
import csnGenerator

# Check command line arguments
if len(sys.argv) != 3:
    sys.exit("Error: not enough arguments. You need to provide an option and a configuration file.")

# Command line inputs
options_file = sys.argv[1]
config_file = sys.argv[2]

# Create GUI handler
handler = csnGUIHandler.Handler()
# Read options
options = csnGUIOptions.Options()
options.Load( options_file )
# Read settings
settings = csnGenerator.Settings()
settings.Load( config_file )
# Set the options
handler.SetOptions( options )
# Configure the project with the settings
if settings.instance == "thirdParty":
    res = handler.ConfigureThirdPartyFolder(settings)
else:
    res = handler.ConfigureProjectToBinFolder( settings, 1 )
sys.exit(res)


## Instruction:
Exit with the proper value.
## Code After:

import sys
import csnGUIHandler
import csnGUIOptions
import csnGenerator

# Check command line arguments
if len(sys.argv) != 3:
    sys.exit("Error: not enough arguments. You need to provide an option and a configuration file.")

# Command line inputs
options_file = sys.argv[1]
config_file = sys.argv[2]

# Create GUI handler
handler = csnGUIHandler.Handler()
# Read options
options = csnGUIOptions.Options()
options.Load( options_file )
# Read settings
settings = csnGenerator.Settings()
settings.Load( config_file )
# Set the options
handler.SetOptions( options )
# Configure the project with the settings
if settings.instance == "thirdParty":
    res = handler.ConfigureThirdPartyFolder(settings)
else:
    res = handler.ConfigureProjectToBinFolder( settings, 1 )
# exit with error if there was a problem
if res == false:
  sys.exit(1)

