def _create_profile_d_file(prefix):
 from fabtools.require.files import file as require_file
 require_file('/etc/profile.d/java.sh', contents=dedent(('            export JAVA_HOME="%s/jdk"\n            export PATH="$JAVA_HOME/bin:$PATH"\n        ' % prefix)), mode='0755', use_sudo=True)

def _create_profile_d_file ( prefix ) : from fabtools . require . files import file as require_file require_file ( '/etc/profile.d/java.sh' , contents = dedent ( ( '            export JAVA_HOME="%s/jdk"\n            export PATH="$JAVA_HOME/bin:$PATH"\n        ' % prefix ) ) , mode = '0755' , use_sudo = True )
create profile .