<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><br></div>
            <div><br></div><div><br></div>
            
            <div id="ydp79f241edyahoo_quoted_7420591572" class="ydp79f241edyahoo_quoted">
                <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                    
                    <div>
                        On Tuesday, May 22, 2018, 10:44:45 PM EDT, Lex Trotman <elextr@gmail.com> wrote:
                    </div>
                    <div><br></div>
                    <div><br></div>
                    <div><div dir="ltr">Lets go back to absolute basics, which file are you editing with<br clear="none">Geany? the pythonbuild.py file or the .ino file? Is the pythonbuild.py<br clear="none"><div>file a tool you are trying to run that processes the .ino file?</div><div><font color="#440062">Yes, </font><br></div><div><font color="#440062">The pythonbuild.py file is the tool. The file i am working on in Geany is the *.ino file.</font></div><div><font color="#440062">So, the working dir is based on the *.ino file as that is opened in Geany and the py</font></div><div><font color="#440062">file is not. <br></font></div><br clear="none">Cheers<br clear="none">Lex<br clear="none"><div class="ydp79f241edyqt5642353098" id="ydp79f241edyqtfd09956"><br clear="none">On 23 May 2018 at 12:01, Joe McCarron via Users <<a shape="rect" href="mailto:users@lists.geany.org" rel="nofollow" target="_blank">users@lists.geany.org</a>> wrote:<br clear="none">><br clear="none">><br clear="none">> On Tuesday, May 22, 2018, 9:34:41 PM EDT, Lex Trotman <<a shape="rect" href="mailto:elextr@gmail.com" rel="nofollow" target="_blank">elextr@gmail.com</a>><br clear="none">> wrote:<br clear="none">> pythonbuild.py  is in /home/joe<br clear="none">><br clear="none">><br clear="none">><br clear="none">> What directory is 'pythonbuild.py' located in and what was the working<br clear="none">> directory when you ran the CLI command?<br clear="none">><br clear="none">> has always been in /home/joe    I am running the CLI from there also<br clear="none">> the working directory is dev/Arduino/sample/sample.ino  which is relative<br clear="none">> to my ~ location. The abs path of the working directory would be<br clear="none">> /home/joe/dev/Arduino/sample/sample.ino<br clear="none">><br clear="none">> If your command is 'python pythonbuild.py<br clear="none">> dev/Arduino/sample/sample.ino' then it must be executed in the<br clear="none">> directory that contains 'pythonbuild.py' since the path is given<br clear="none">> relative to the working directory (and so is<br clear="none">> 'dev/Arduino/sample/sample.ino' but we havn't gotten to it yet :).<br clear="none">><br clear="none">> yes, that is true<br clear="none">><br clear="none">> Geany commands (by default) run with a working directory that is the<br clear="none">> directory of the current file displayed in the edit area, you can<br clear="none">> change this in the "working directory" column of the "set build<br clear="none">> commands" dialog to make it a fixed location such as the directory<br clear="none">> where 'pythonbuild.py' lives.<br clear="none">><br clear="none">> so your saying move pythonbuild to my working directory, correct ?<br clear="none">> Ok, I will try that. So maybe the problem is the there is no way for the<br clear="none">> working<br clear="none">> directory to get to reference the up stream directory ? as in its ok to<br clear="none">> drill down but<br clear="none">> not up ?? I will try try moving the *.py file to the working directory.<br clear="none">><br clear="none">> Yes, so the working directory is just use  %d%f so the whole thing in Geany<br clear="none">> python home/joe/pythonbuild.py  %d/%f<br clear="none">><br clear="none">> but I get Invalid working directory<br clear="none">> "/home/joe/dev/Arduino/4X20OLED/4X20OLED.ino"<br clear="none">><br clear="none">><br clear="none">><br clear="none">><br clear="none">_______________________________________________<br clear="none">Users mailing list<br clear="none"><a shape="rect" href="mailto:Users@lists.geany.org" rel="nofollow" target="_blank">Users@lists.geany.org</a><br clear="none"><a shape="rect" href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" rel="nofollow" target="_blank">https://lists.geany.org/cgi-bin/mailman/listinfo/users</a><br clear="none"></div></div></div>
                </div>
            </div></div></body></html>