<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="it">
	<id>https://wiki.minerva-apps.com/index.php?action=history&amp;feed=atom&amp;title=Caricare_propriet%C3%A0_da_un_file_properties_in_Python</id>
	<title>Caricare proprietà da un file properties in Python - Cronologia</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.minerva-apps.com/index.php?action=history&amp;feed=atom&amp;title=Caricare_propriet%C3%A0_da_un_file_properties_in_Python"/>
	<link rel="alternate" type="text/html" href="https://wiki.minerva-apps.com/index.php?title=Caricare_propriet%C3%A0_da_un_file_properties_in_Python&amp;action=history"/>
	<updated>2026-05-01T15:46:29Z</updated>
	<subtitle>Cronologia della pagina su questo sito</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.minerva-apps.com/index.php?title=Caricare_propriet%C3%A0_da_un_file_properties_in_Python&amp;diff=1747&amp;oldid=prev</id>
		<title>Andrea: Creata pagina con &quot;&amp;larr; Python Category:Python  * Lettura della cartella corrente in Python  == File Properties == file {{code|config.ini}} &lt;pre&gt; [sezione] company...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.minerva-apps.com/index.php?title=Caricare_propriet%C3%A0_da_un_file_properties_in_Python&amp;diff=1747&amp;oldid=prev"/>
		<updated>2024-12-11T13:31:51Z</updated>

		<summary type="html">&lt;p&gt;Creata pagina con &amp;quot;&lt;a href=&quot;/index.php?title=GENERALE#Python&quot; title=&quot;GENERALE&quot;&gt;← Python&lt;/a&gt; &lt;a href=&quot;/index.php?title=Categoria:Python&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Categoria:Python (la pagina non esiste)&quot;&gt;Category:Python&lt;/a&gt;  * &lt;a href=&quot;/index.php?title=Lettura_della_cartella_corrente_in_Python&quot; title=&quot;Lettura della cartella corrente in Python&quot;&gt;Lettura della cartella corrente in Python&lt;/a&gt;  == File Properties == file {{code|config.ini}} &amp;lt;pre&amp;gt; [sezione] company...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nuova pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[GENERALE#Python|&amp;amp;larr; Python]] [[Category:Python]]&lt;br /&gt;
&lt;br /&gt;
* [[Lettura della cartella corrente in Python]]&lt;br /&gt;
&lt;br /&gt;
== File Properties ==&lt;br /&gt;
file {{code|config.ini}}&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[sezione]&lt;br /&gt;
company = &amp;quot;Azienda&amp;quot;&lt;br /&gt;
receiver_email = &amp;quot;notification@azienda.it&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lettura del file ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import os, configparser&lt;br /&gt;
&lt;br /&gt;
# file INI&lt;br /&gt;
fileini = &amp;quot;config_email.ini&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Percorso assoluto del file corrente&lt;br /&gt;
current_file_path = os.path.abspath(__file__)&lt;br /&gt;
# Cartella contenente il file&lt;br /&gt;
current_directory = os.path.dirname(current_file_path)&lt;br /&gt;
&lt;br /&gt;
# lettura parametri di configurazione        &lt;br /&gt;
config = configparser.ConfigParser()&lt;br /&gt;
config.read( current_directory + &amp;quot;/&amp;quot; + fileini ) &lt;br /&gt;
&lt;br /&gt;
# parametri sezione &amp;quot;sezione&amp;quot;&lt;br /&gt;
section = &amp;quot;sezione&amp;quot;;&lt;br /&gt;
company = config[section][&amp;quot;company&amp;quot;];&lt;br /&gt;
receiver_email = config[section][&amp;quot;receiver_email&amp;quot;];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Andrea</name></author>
		
	</entry>
</feed>