Re: macro project root variable
Eric Promislow <[email protected]> Fri, 05 Aug 2011 10:23:40 -0700
| Newsgroups | gmane.comp.ide.komodo.general |
|---|---|
| Message-ID | <[email protected]> |
ko.projects.manager.currentProject.getFile().dirName
The koFileEx object that ko.projects.manager.currentProject.getFile() returns is
defined at
[komodo-install]/lib/sdk/idl/koIFileEx.idl
Regards,
Eric
On 8/5/2011 9:33 AM, Eric Promislow wrote:
> ko.projects.manager.currentProject.getFile().path
>
> On 8/5/2011 9:13 AM, Anton Visser wrote:
>> I'm writing a macro, to execute a file in the root of my project. I
>> would rather have a variable for the project root, than hardcode it.
>> Does anyone if it is possible?
>>
>>
>> ko.run.runEncodedCommand(window,
>> '/path/to/proejct/sync.sh {"doNotOpenOutputWindow": True}');
>>
>> I would love to substitute a variable for '/path/to/proejct'
>>
>> cheers,
>> Anton
>> _______________________________________________
>> Komodo-discuss mailing list
>> [email protected]
>> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>> Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss
> _______________________________________________
> Komodo-discuss mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss
_______________________________________________
Komodo-discuss mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss