<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Cannot access primary project with --noUI option</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/13c2a65983/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/13c2a65983/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/13c2a65983/</id><updated>2020-02-27T14:55:37.753000Z</updated><subtitle>Recent posts to Cannot access primary project with --noUI option</subtitle><entry><title>Cannot access primary project with --noUI option</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/13c2a65983/?limit=25#8fd3" rel="alternate"/><published>2020-02-27T14:55:37.753000Z</published><updated>2020-02-27T14:55:37.753000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com2b97f77a870b01b4c003cc78d73c0d49358a9490</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Shabroz.Gill.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Shabroz.Gill hat geschrieben:&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="ss"&gt;"C:\Program Files (x86)\3S CODESYS\CODESYS\Common\Codesys.exe"&lt;/span&gt; &lt;span class="c1"&gt;--noUI --project="UnitTests.project" --profile="CODESYS V3.5 SP9 Patch 5" --runscript="t1.py"&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;First you can try to put the  at the end of the parameters, in the case the order of the parameters causes your problem.&lt;/p&gt;
&lt;p&gt;If you always open the same project why not open the project from within the python script. When you have to open different projects, you can open the project from within the python script but use the parameter  to transfer the project path to the script.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Cannot access primary project with --noUI option</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/13c2a65983/?limit=25#ad59" rel="alternate"/><published>2020-02-27T14:55:37.156000Z</published><updated>2020-02-27T14:55:37.156000Z</updated><author><name>Shabroz.Gill</name><uri>https://forge.codesys.com/u/shabroz-gill/</uri></author><id>https://forge.codesys.comc094c46f94765a35c2ba1354cda9e90aa65a4311</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am trying to run a script which accesses the project and does manipulations to it. This is run through command line. When I run it with --noUI option projects.primary returns None in the script.&lt;/p&gt;
&lt;p&gt;It runs fine when run with UI. Am I missing something here.&lt;/p&gt;
&lt;p&gt;It can be recreated with the project and script attached and the following command:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="ss"&gt;"C:\Program Files (x86)\3S CODESYS\CODESYS\Common\Codesys.exe"&lt;/span&gt; &lt;span class="c1"&gt;--noUI --project="UnitTests.project" --profile="CODESYS V3.5 SP9 Patch 5" --runscript="t1.py"&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=2364" rel="nofollow"&gt;CodesysTest.zip &lt;span&gt;&lt;span&gt;[38.9 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>