Your IP : 216.73.216.134


Current Path : /opt/rh/rh-python35/root/lib64/python3.5/__pycache__/
Upload File :
Current File : //opt/rh/rh-python35/root/lib64/python3.5/__pycache__/site.cpython-35.pyc



���\T�@s�dZddlZddlZddlZddlZejejgadada	da
dd�Zdd�Zdd�Z
d	d
�Zdd�Zdd
d�Zdd�Zdd�Zdd�Zdd�Zddd�Zddd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%Zd&d'�Zd(d)�Zd*d+�Zd,d-�Z ej!j"sxe �d.d/�Z#e$d0kr�e#�dS)1acAppend module search paths for third-party packages to sys.path.

****************************************************************
* This module is automatically imported during initialization. *
****************************************************************

This will append site-specific paths to the module search path.  On
Unix (including Mac OSX), it starts with sys.prefix and
sys.exec_prefix (if different) and appends
lib/python<version>/site-packages.
On other platforms (such as Windows), it tries each of the
prefixes directly, as well as with lib/site-packages appended.  The
resulting directories, if they exist, are appended to sys.path, and
also inspected for path configuration files.

If a file named "pyvenv.cfg" exists one directory above sys.executable,
sys.prefix and sys.exec_prefix are set to that directory and
it is also checked for site-packages (sys.base_prefix and
sys.base_exec_prefix will always be the "real" prefixes of the Python
installation). If "pyvenv.cfg" (a bootstrap configuration file) contains
the key "include-system-site-packages" set to anything other than "false"
(case-insensitive), the system-level prefixes will still also be
searched for site-packages; otherwise they won't.

All of the resulting site-specific directories, if they exist, are
appended to sys.path, and also inspected for path configuration
files.

A path configuration file is a file whose name has the form
<package>.pth; its contents are additional directories (one per line)
to be added to sys.path.  Non-existing directories (or
non-directories) are never added to sys.path; no directory is added to
sys.path more than once.  Blank lines and lines beginning with
'#' are skipped. Lines starting with 'import' are executed.

For example, suppose sys.prefix and sys.exec_prefix are set to
/usr/local and there is a directory /usr/local/lib/python2.5/site-packages
with three subdirectories, foo, bar and spam, and two path
configuration files, foo.pth and bar.pth.  Assume foo.pth contains the
following:

  # foo package configuration
  foo
  bar
  bletch

and bar.pth contains:

  # bar package configuration
  bar

Then the following directories are added to sys.path, in this order:

  /usr/local/lib/python2.5/site-packages/bar
  /usr/local/lib/python2.5/site-packages/foo

Note that bletch is omitted because it doesn't exist; bar precedes foo
because bar.pth comes alphabetically before foo.pth; and spam is
omitted because it is not mentioned in either path configuration file.

The readline module is also automatically configured to enable
completion for systems that support it.  This can be overriden in
sitecustomize, usercustomize or PYTHONSTARTUP.

After these operations, an attempt is made to import a module
named sitecustomize, which can perform arbitrary additional
site-specific customizations.  If this import fails with an
ImportError exception, it is silently ignored.
�NcGsStjj|�}ytjj|�}Wntk
r<YnX|tjj|�fS)N)�os�path�join�abspath�OSError�normcase)�paths�dir�r
�4/opt/rh/rh-python35/root/usr/lib64/python3.5/site.py�makepathYs
rcCs�x�ttjj��D]�}tt|dd�dd�dkrCqytjj|j�|_Wnt	t
fk
ryYnXytjj|j�|_Wqt	t
fk
r�YqXqWdS)zESet all module __file__ and __cached__ attributes to an absolute path�
__loader__N�
__module__�_frozen_importlib�_frozen_importlib_external)z_frozen_importlibz_frozen_importlib_external)�set�sys�modules�values�getattrrrr�__file__�AttributeErrorr�
__cached__)�mr
r
r�	abs_pathsbs	rcCsrg}t�}xItjD]>}t|�\}}||kr|j|�|j|�qW|tjdd�<|S)zK Remove duplicate entries from sys.path along with making them
    absoluteN)rrrr�append�add)�L�known_pathsr	�dircaser
r
r�removeduppathsrs	
r cCsnt�}x^tjD]S}y5tjj|�rMt|�\}}|j|�Wqtk
rewYqXqW|S)zDReturn a set containing all existing directory entries from sys.path)rrrr�isdirrr�	TypeError)�dr	rr
r
r�_init_pathinfo�s	
r$cCs�|dkrt�}d}nd}tjj||�}yt|d�}Wntk
rddSYnX|�VxNt|�D]@\}}|jd�r�qyy||jd�r�t|�wy|j	�}t
||�\}}	|	|krtjj|�rtjj
|�|j|	�Wqytk
r�tdj|d|�d	tj�ddl}
xK|
jtj��D]4}x+|j�D]}td
|d	tj�q{WqhWtdd	tj�PYqyXqyWWdQRX|r�d}|S)
z�Process a .pth file within the site-packages directory:
       For each line in the file, either combine it with sitedir to a path
       and add that to known_paths, or execute it if it starts with 'import '.
    N�r�r�#�import �import	z"Error processing line {:d} of {}:
�filez  z
Remainder of file ignored)r(r))r$rrr�openr�	enumerate�
startswith�exec�rstripr�existsrrr�	Exception�print�format�stderr�	traceback�format_exception�exc_info�
splitlines)�sitedir�namer�reset�fullname�f�n�liner	rr5�recordr
r
r�
addpackage�sD		
	


rAc
Cs�|dkrt�}d}nd}t|�\}}||kr_tjj|�|j|�ytj|�}Wntk
r�dSYnXdd�|D�}x$t	|�D]}t
|||�q�W|r�d}|S)zTAdd 'sitedir' argument to sys.path if missing and handle .pth files in
    'sitedir'Nr%rcSs%g|]}|jd�r|�qS)z.pth)�endswith)�.0r:r
r
r�
<listcomp>�s	zaddsitedir.<locals>.<listcomp>)r$rrrrrr�listdirr�sortedrA)r9rr;�sitedircase�namesr:r
r
r�
addsitedir�s$		

	rIcCs�tjjrdSttd�rJttd�rJtj�tj�krJdSttd�r�ttd�r�tj�tj�kr�dSdS)a,Check if user site directory is safe for inclusion

    The function tests for the command line flag (including environment var),
    process uid/gid equal to effective uid/gid.

    None: Disabled for security reasons
    False: Disabled by user (command line option)
    True: Safe and enabled
    F�getuid�geteuidN�getgid�getegidT)	r�flags�no_user_site�hasattrrrKrJrMrLr
r
r
r�check_enableusersite�s
rQcCs0tdk	rtSddlm}|d�atS)z�Returns the `user base` directory path.

    The `user base` directory can be used to store data. If the global
    variable ``USER_BASE`` is not initialized yet, this function will also set
    it.
    Nr)�get_config_var�userbase)�	USER_BASE�	sysconfigrR)rRr
r
r�getuserbase�s
rVcCs�t�}tdk	rtSddlm}tjdkrgddlm}|d�rg|dd�atS|dd	tj�atS)
z�Returns the user-specific site-packages directory path.

    If the global variable ``USER_SITE`` is not initialized yet, this
    function will also set it.
    Nr)�get_path�darwin)rR�PYTHONFRAMEWORK�purelib�osx_framework_userz%s_user)	rV�	USER_SITErUrWr�platformrRrr:)�	user_baserWrRr
r
r�getusersitepackages�s	r_cCs2t�}tr.tjj|�r.t||�|S)z�Add a per user site-package to sys.path

    Each user has its own python directory with site-packages in the
    home directory.
    )r_�ENABLE_USER_SITErrr!rI)r�	user_siter
r
r�addusersitepackagess	
rbc	Cs|g}t�}|dkr!t}xT|D]L}|s(||krDq(|j|�tjdkr�|jtjj|ddtj	dd�d��|jtjj|ddtj	dd�d��nK|j|�|jtjj|dd��|jtjj|dd��tj
dkr(d	d
lm}|d�}|r(|jtjjd|tj	dd�d��q(W|S)
aReturns a list containing all global site-packages directories.

    For each directory present in ``prefixes`` (or the global ``PREFIXES``),
    this function will find its `site-packages` subdirectory depending on the
    system environment, and will return a list of full paths.
    N�/�lib64�python�z
site-packages�librXr)rRrYz/Library)
r�PREFIXESrr�seprrrr�versionr]rUrR)�prefixes�sitepackages�seen�prefixrR�	frameworkr
r
r�getsitepackagess4	




rpcCs:x3t|�D]%}tjj|�r
t||�q
W|S)zAdd site-packages to sys.path)rprrr!rI)rrkr9r
r
r�addsitepackagesGsrqcCsdtjdkrd}ntjdkr0d}nd}tjd|�t_tjd|�t_dS)	z�Define new builtins 'quit' and 'exit'.

    These are objects which make the interpreter exit when called.
    The repr of each object contains a hint at how it works.

    �:zCmd-Q�\zCtrl-Z plus ReturnzCtrl-D (i.e. EOF)�quit�exitN)rri�
_sitebuiltins�Quitter�builtinsrtru)�eofr
r
r�setquitOs		rzcCs�tjdtj�t_tjdd�dkrItjdd�t_ntjdd�t_gg}}ttd�r�tj	j
tj�}|jd	d
g�|jtj	j
|tj�|tjg�tjdd||�t_dS)
z)Set 'copyright' and 'credits' in builtins�	copyrightN��java�creditsz?Jython is maintained by the Jython developers (www.jython.org).z�    Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
    for supporting Python development.  See www.python.org for more information.rzLICENSE.txt�LICENSE�licensez'See https://www.python.org/psf/license/)rv�_Printerrr{rxr]r~rPrr�dirnamer�extendr�pardir�curdirr�)�files�dirs�herer
r
r�setcopyrightas 	
+r�cCstj�t_dS)N)rv�_Helperrx�helpr
r
r
r�	sethelperysr�cCsdd�}|t_dS)aiEnable default readline configuration on interactive prompts, by
    registering a sys.__interactivehook__.

    If the readline module can be imported, the hook will set the Tab key
    as completion key and register ~/.python_history as history file.
    This can be overriden in the sitecustomize or usercustomize module,
    or in a PYTHONSTARTUP file.
    cSsddl}yddl}ddl}Wntk
r@dSYnXt|dd�}|dk	r{d|kr{|jd�n
|jd�y|j�Wntk
r�YnX|j�dkrt	j
jt	j
jd�d�}y|j
|�Wntk
rYnX|j|j|�dS)	Nr�__doc__��libeditzbind ^I rl_completez
tab: complete�~z.python_history)�atexit�readline�rlcompleter�ImportErrorr�parse_and_bind�read_init_filer�get_current_history_lengthrrr�
expanduser�read_history_file�IOError�register�write_history_file)r�r�r��readline_doc�historyr
r
r�register_readline�s,
	

	
z,enablerlcompleter.<locals>.register_readlineN)r�__interactivehook__)r�r
r
r�enablerlcompleter|s	'r�cCs�tjdkr�ddl}ddl}|jd�}|jd�r�y|j|�Wn>tk
r�ddl}|j	|j
|<d|jj|<YnXdS)z�On Windows, some default encodings are not provided by Python,
    while they are always available as "mbcs" in each locale. Make
    them usable by aliasing to "mbcs" in such a case.�win32rNF�cp�mbcs)rr]�_bootlocale�codecs�getpreferredencodingr-�lookup�LookupError�	encodings�_unknown�_cache�aliases)r�r��encr�r
r
r�	aliasmbcs�s
r�z,^(?P<key>(\w|[-_])+)\s*=\s*(?P<value>.*)\s*$cCstj}tjdkr4d|kr4tjd}n	tj}tjjtjj|��\}}tjj|�}dt_	d}dd�tjj
||�tjj
||�fD�}|rddl}|jt
�}	|d}
d}t|
dd	���}x�|D]�}
|
j�}
|	j|
�}|r|j�}|d
j�|d}}|dkro|j�}q|d
kr�|t_	q|dkr|j�dkr|}d}qWWdQRX|t_t_t|tjg�|dkrtjdtj�ntjgada|S)NrX�__PYVENV_LAUNCHER__z
pyvenv.cfgcSs(g|]}tjj|�r|�qSr
)rr�isfile)rC�conffiler
r
rrD�s	zvenv.<locals>.<listcomp>r�true�encodingzutf-8�key�valuezinclude-system-site-packages�home�applocal�falseF)r�environrr]�
executabler�splitrr��_homer�re�compile�CONFIG_LINEr+�strip�match�	groupdict�lowerrn�exec_prefixrqrh�insertr`)r�envr��exe_dir�_�site_prefix�
conf_basename�candidate_confsr��config_line�virtual_conf�system_siter=r?rr#r�r�r
r
r�venv�sJ		$		

r�cCs�yddl}Wn~tk
r$Ynmtk
r�}zMtjjd�r^tjtj��n tj	j
d|jj|f�WYdd}~XnXdS)z,Run custom site specific code, if available.rN�
PYTHONVERBOSEz@Error in sitecustomize; set PYTHONVERBOSE for traceback:
%s: %s
)
�
sitecustomizer�r1rr��getr�
excepthookr7r4�write�	__class__�__name__)r��errr
r
r�execsitecustomize�s
	r�cCs�yddl}Wn~tk
r$Ynmtk
r�}zMtjjd�r^tjtj��n tj	j
d|jj|f�WYdd}~XnXdS)z,Run custom user specific code, if available.rNr�z@Error in usercustomize; set PYTHONVERBOSE for traceback:
%s: %s
)
�
usercustomizer�r1rr�r�rr�r7r4r�r�r�)r�r�r
r
r�execusercustomizes
	r�cCs�t�t�}t|�}tdkr1t�at|�}t|�}t�t�t	�t
�t�t�tr�t
�dS)z�Add standard site-specific directories to the module search path.

    This function is called automatically when this module is imported,
    unless the python interpreter was started with the -S flag.
    N)rr r�r`rQrbrqrzr�r�r�r�r�r�)rr
r
r�mains		r�cCs�d}tjdd�}|s�t�}t�}td�x"tjD]}td|f�qEWtd�td|tjj|�r�dndf�td	|tjj|�r�dndf�td
t�tj	d�g}d|kr�|j
t�d
|kr|j
t�|r�ttj
j|��trGtj	d�q�tdkrctj	d�q�tdkrtj	d�q�tj	d�n@ddl}t|j|tjdtj
f��tj	d�dS)Na�    %s [--user-base] [--user-site]

    Without arguments print some useful information
    With arguments print the value of USER_BASE and/or USER_SITE separated
    by '%s'.

    Exit codes with --user-base or --user-site:
      0 - user site directory is enabled
      1 - user site directory is disabled by user
      2 - uses site directory is disabled by super user
          or for security reasons
     >2 - unknown error
    r%zsys.path = [z    %r,�]zUSER_BASE: %r (%s)r0z
doesn't existzUSER_SITE: %r (%s)zENABLE_USER_SITE: %rrz--user-basez--user-siteF�rf�
)r�argvrVr_r2rrr!r`rurrTr\�pathsepr�textwrap�dedent)r��argsr^rar	�bufferr�r
r
r�_script9s@		

	#	#


'r��__main__)%r�rrrxrvrnr�rhr`r\rTrrr r$rArIrQrVr_rbrprqrzr�r�r�r�r�r�r�r�r�rN�no_siter�r�r
r
r
r�<module>EsF	
*(2=3

Rosenblum TV: Video training, virtual workshops, classes, tutorials
logologologologo
  • About
  • What We Do
  • Our Clients
  • Case Studies
    • The BBC
    • CBS News
    • New York Times Television
    • Spectrum News
    • The Newark Star-Ledger
    • The United Nations
    • McGraw/Hill
    • Oyster Yachts
    • Scottish Environmental Protection Agency
  • The Power of Storytelling
  • Why iPhones?
  • Michael on Media
  • Books
  • Contact
  • About
  • What We Do
  • Our Clients
  • Case Studies
    • The BBC
    • CBS News
    • New York Times Television
    • Spectrum News
    • The Newark Star-Ledger
    • The United Nations
    • McGraw/Hill
    • Oyster Yachts
    • Scottish Environmental Protection Agency
  • The Power of Storytelling
  • Why iPhones?
  • Michael on Media
  • Books
  • Contact

RE-INVENTING THE TELEVISION NEWS BUSINESS*

A revolution in video storytelling

Creating entirely new & cost-effective production methods

From the world leaders in video production training and the creators of Character Driven Storytelling™

*and every other business that uses video

WHAT WE DO

Over the past 35 years, we have designed, built or restructured some of the most powerful news and journalism companies in the world.

We replace the traditional TV news ‘crew’ with one highly trained journalist, working alone with nothing but an iPhone.

No more TV news ‘crews’, no editors and no field producers.

This is television news done the way newspaper journalism is done – one reporter with their electronic pad and pencil.

In doing this, we can cut the cost of production by as much as 75% while increasing ratings and audience engagement.

In the place of conventional TV news ‘packages’ – ie, reporter stand up, interview, b-roll, man on the street, we marry great journalism with Netflix and Hollywood storytelling.

It’s a combination that works.

We have taken most of our clients to #1 in their respective markets.

And it’s not just for news. Any company, any profit, any NGO and anyone else who is online needs to tell their story in compelling yet cost-effective video. We can teach you to do that. Either in person or virtually.

EXAMPLES OF WHAT WE CAN TEACH YOUR STAFF TO PRODUCE

ITAY HOD

Itay Hod, MMJ with KPIX/CBS in San Francisco, took the 5-Day Intensive Video Storytelling Bootcamp in 2018.

Because he works alone, with only an iPhone, he was able to embed himself with a homeless family.

Here’s the story he produced in a one-day turn.

KIET DO

Kiet Do, an MMJ with KPIX/CBS in San Francisco, took the 5-Day Intensive Video Storytelling Bootcamp in 2021.

Here is a story he produced, all on his own, with only an iPhone and in a one-day turn.

TAYLOR SCHAUB

Taylor Schaub, an MMJ with Spectrum News 1 in LA, took the 5-Day Intensive Video Storytelling Bootcamp in 2023.

Here is a story he turned in only one day, using only an iPhone. It was the first video story he ever did and it was nominated for an Emmy.

THE BOOTCAMP

How do we convert stations and whole networks to working in this way?

Since 1988, we have run intensive 5-Day Video Storytelling Bootcamps

We have done these all over the world.

These are hands-on bootcamps, and participants learn an entirely new way of creating TV news stories.

-We shoot at a 3:1 ratio or lower, so turnaround times are fast.

-We go directly from camera to timelilne and edit – no written scripts.  We work in the medium of pictures and sound.

-We are entirely character-driven.

-We are driven by pictures and real events.

-We are focused almost entirely on ’the viewer experience’.

Since 1988, more than 70,000 journalists around the world have taken our bootcamps, either in person on virtualy.

Case Studies

CBS Case Study Logos
CBS News

We have started to work with CBS News, bringing our ideas of character-driven storytelling to one of the most successful and biggest networks in the United States. Since beginning to work with them ratings have climbed and more importantly, audience engagement is through the ceiling.

Learn More
NYT Case Study Logos
New York Times Television

We started New York Times Television in 1990 and it was the first paper to be brought into the world of TV. It quickly became one of the most successful non-fiction production companies in the United States. The series and documentaries we produced won many awards including multiple Emmys.

Learn More
BBC Case Study Logos
The BBC

We have been working with the BBC since the year 2000 helping to convert their national news network to our visual storytelling technique. Most recently we have trained teams from their sports, documentaries, and comedy divisions to make character-driven stories using only smartphones.

Learn More
Spectrum Case Study Logos
Spectrum News

For the past five years we have worked with Spectrum News to introduce and train their journalists on visual, character driven storytelling using smartphones helping to create a different kind of local news for their network of 24-Hour News Stations across the United States.

Learn More
UN Case Study Logos
The United Nations

In 2006, we were approached by the United Nations. Rather than rely on news outlets, it would be much easier to train the field operatives to produce their own stories. We spent two years working with the UN, training more than 100 of their staff in bootcamps in Geneva and Nairobi.

Learn More
Star Ledger Case Study Logos
The Newark Star-Ledger

We trained 50 print reporters at the paper to shoot and tell their own stories, in conjunction with their print work. We built a TV newsroom in their existing print newsroom – you could not ask for a better set and they began to live stream their stories in conjunction with their print work.

Learn More
Mcgraw Hill Case Study Logos
Mcgraw Hill

We spent two years with McGraw Hill, training more than 150 of their staffers, making them completely video literate. McGraw/Hill media properties we transit included Business Week, Aviation Week, (what was the name of the architecture magazine), and JD Power and Associates.

Learn More
VOA Case Study Logos
Voice of America

In 1990, we were approached by The Voice of America, the official broadcasting agency for the United States Government. When we met with VOA, they were only a short wave radio broadcaster, but working with them, we took them into television, launching VOA-TV.

Learn More
Oyster Case Study Logos
Oyster Yachts

British based Oyster Yachts makes some of the finest yachts in the world. Like every other company, they had to find a way to feed the never-ending video demands of social media – sites like Instagram and TikTok. We trained the Oyster staff to tell their own stories, using only iPhones.

Learn More
SEPA Case Study Logos
Scottish Environmental Protection Agency

We were approached by SEPA, the Scottish Environmental Protection Agency because they had to continually find a way to ‘feed the media beast’. The result was that SEPA was able to tell their own stories, whenever they wanted, and at almost no additional cost.

Learn More
Image 11-11-22 at 6.25 PM

Michael on Media

Michael Rosenblum has been writing about the media since 1988. His work and ideas have appeared in The Guardian, The Huffington Post, Ilkeston Life and many other publications.

He has been blogging regularly for the past 35 years on this subject. Having taught media studies at Columbia University, NYU and now the University of Oxford, he is considered an expert on this subject.

Continue reading this post or look back at previous posts.

Read More

Do You Have Questions About Learning Video Skills?

If you would like to know more about our courses contact us and one of our training advisors will be happy to call you.

Contact Us

Copyright 2024. All rights reserved.