Hi Hartmut,
Thank you for your answer.

I understand that the file is to be created in the current directory with
this code, When running the script, the text file is created successfully
in the working directory. But the when running the executable, the file is
not created at all.

On 23 February 2015 at 12:03, Hartmut Goebel <[email protected]>
wrote:

>  Am 23.02.2015 um 11:52 schrieb Jose Luis Da:
>
> with open('test.txt','w') as f:
>>  f.write('test worked')
>
>
>  Obviously this file is to be created in the current working directory,
> because you are not adding any path to it. Try using an absolut path like
> /tmp/text.txt or C:\text.txt
>
>
> --
>  Schönen Gruß
> Hartmut Goebel
>  Dipl.-Informatiker (univ), CISSP, CSSLP
> Information Security Management, Security Governance, Secure Software
> Development
>
> Goebel Consult, Landshut
> http://www.goebel-consult.de
>
> Blog:
> http://www.goebel-consult.de/blog/tr-069-auf-fritzbox-ausschalten-und-ergebnis-prufen
> Kolumne:
> http://www.cissp-gefluester.de/2012-04-compliance-bringt-keine-sicherheit
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "PyInstaller" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/pyinstaller/FYR1roP6sb0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/pyinstaller.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Reply via email to