parameters: (self, options, workingdir)
docstring: Arguments:
          - `options`:
docstring_summary: Arguments:
          - `options`:
docstring_tokens: Arguments : - options :
function: def init(self, options, workingdir):
          """
          Arguments:
          - `options`:
          """
          self._current_src_dir = None
          self._src_dir_arr = self.normalize_path_in_list(options.src_dir_arr)
          self._dst_dir = options.dst_dir
          self._use_closure_compiler = options.use_closure_compiler
          self._verbose = options.verbose
          self._config = None
          self._workingdir = workingdir
          self._closure_params = ''
          if options.compiler_config != None:
              f = open(options.compiler_config)
              self._config = json.load(f)
              f.close()
  
              self._pre_order = self._config["pre_order"]
              self.normalize_path_in_list(self._pre_order)
              self._post_order = self._config["post_order"]
              self.normalize_path_in_list(self._post_order)
              self._skip = self._config["skip"]
              self.normalize_path_in_list(self._skip)
              self._closure_params = self._config["closure_params"]
  
          
          if options.closure_params is not None:
              self._closure_params = options.closure_params
  
          self._js_files = {}
          self._compressed_js_path = os.path.join(self._dst_dir, options.compressed_filename)
          self._compressed_jsc_path = os.path.join(self._dst_dir, options.compressed_filename+"c")
  
          if(cocos.os_is_linux()):
              if(platform.architecture()[0] == "32bit"):
                  self.jsbcc_exe_path = os.path.join(self._workingdir, "bin", "linux", "jsbcc_x86")
              else:
                  self.jsbcc_exe_path = os.path.join(self._workingdir, "bin", "linux", "jsbcc_x64")
          else:
              self.jsbcc_exe_path = os.path.join(self._workingdir, "bin", "jsbcc")
function_tokens: def init ( self , options , workingdir ) : self . _current_src_dir = None self . _src_dir_arr = self . normalize_path_in_list ( options . src_dir_arr ) self . _dst_dir = options . dst_dir self . _use_closure_compiler = options . use_closure_compiler self . _verbose = options . verbose self . _config = None self . _workingdir = workingdir self . _closure_params = '' if options . compiler_config != None : f = open ( options . compiler_config ) self . _config = json . load ( f ) f . close ( ) self . _pre_order = self . _config [ "pre_order" ] self . normalize_path_in_list ( self . _pre_order ) self . _post_order = self . _config [ "post_order" ] self . normalize_path_in_list ( self . _post_order ) self . _skip = self . _config [ "skip" ] self . normalize_path_in_list ( self . _skip ) self . _closure_params = self . _config [ "closure_params" ] if options . closure_params is not None : self . _closure_params = options . closure_params self . _js_files = { } self . _compressed_js_path = os . path . join ( self . _dst_dir , options . compressed_filename ) self . _compressed_jsc_path = os . path . join ( self . _dst_dir , options . compressed_filename + "c" ) if ( cocos . os_is_linux ( ) ) : if ( platform . architecture ( ) [ 0 ] == "32bit" ) : self . jsbcc_exe_path = os . path . join ( self . _workingdir , "bin" , "linux" , "jsbcc_x86" ) else : self . jsbcc_exe_path = os . path . join ( self . _workingdir , "bin" , "linux" , "jsbcc_x64" ) else : self . jsbcc_exe_path = os . path . join ( self . _workingdir , "bin" , "jsbcc" )