#!/usr/bin/perl #============================================================================== # WFA Script Execution Wrapper #============================================================================== use strict; use Getopt::Long; my $command_script; my $python_path; my $inc_path; # Parse Options GetOptions ("Perl=s" => \$python_path, "INCPaths=s" => \$inc_path, "Script=s" => \$command_script); # If in Linux, set script as executable my @cred_args = split(/ /, $command_script); my $scr = $cred_args[0]; if ("$^O" ne "MSWin32") { $scr = $cred_args[0]; chmod 0755, $scr; } ## ------ PATH to PYTHON.EXE # # Modify as per your python installation. ## Below is for the default installation of Python2.7. $python_path = "C://Python27//python.exe"; system('"' . $python_path . '" ' . " " . $command_script);