CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Tue Feb 18, 2020 8:59 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Thu Dec 12, 2019 4:26 am 
Offline

Joined: Wed Dec 11, 2019 8:31 am
Posts: 1
Hi,

If several different .py files need to get some configure data from same external file(like .txt or another .py).
I try to use the code below, but it dosen't work and report error.

import subprocess
retcode = subprocess.call(r' --runscript="C:\Users\TRY_PY\Test.py"')

Is there any other methods or API can achieve?
thanks!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+01:00


Who is online

Users browsing this forum: Andreas Kehrer and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited