Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Location of EventGhost config file?

If you have a question or need help, this is the place to be.
Post Reply
mikkokh
Posts: 20
Joined: Wed Sep 05, 2007 6:42 pm
Location: Finland

Location of EventGhost config file?

Post by mikkokh »

Is there way to get directory location of current EventGhost config file?
Win 7 Pro 64bit (SP1) / Win 10 Pro 64bit running on Asus M5A97 R2.0 (16GB DDR3-SDRAM) with AMD FX-8300.
Win 7 Home Pemium 64bit (SP1) / Win 10 Pro 64bit running on Asus K73TK (8GB DDR3-SDRAM) with AMD A6-3420M.
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Location of EventGhost config file?

Post by krambriw »

Code: Select all

p = eg.configDir

print p
mikkokh
Posts: 20
Joined: Wed Sep 05, 2007 6:42 pm
Location: Finland

Re: Location of EventGhost config file?

Post by mikkokh »

Thanks krambriw, but your script seems to give wrong result...
It gives 'C:\Users\User\AppData\Roaming\EventGhost' when it should to give 'D:\Temp', where config tree XML file is located. What could be problem?
Win 7 Pro 64bit (SP1) / Win 10 Pro 64bit running on Asus M5A97 R2.0 (16GB DDR3-SDRAM) with AMD FX-8300.
Win 7 Home Pemium 64bit (SP1) / Win 10 Pro 64bit running on Asus K73TK (8GB DDR3-SDRAM) with AMD A6-3420M.
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Location of EventGhost config file?

Post by krambriw »

You dont find config.py there? That is EG's configuration file.

I understand now that you are instead looking for your own configuration (the xml-file) but to that I have no answer yet

Personally, I have my xml-files and the config.py in the same place
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Location of EventGhost config file?

Post by Pako »

krambriw wrote:... you are instead looking for your own configuration (the xml-file) ...

Code: Select all

from os.path import split
print split(eg.document.filePath)[0]
Pako
mikkokh
Posts: 20
Joined: Wed Sep 05, 2007 6:42 pm
Location: Finland

Re: Location of EventGhost config file?

Post by mikkokh »

Pako wrote:

Code: Select all

from os.path import split
print split(eg.document.filePath)[0]
Yep. This is what I looked for. Thanks you both for helping!
Win 7 Pro 64bit (SP1) / Win 10 Pro 64bit running on Asus M5A97 R2.0 (16GB DDR3-SDRAM) with AMD FX-8300.
Win 7 Home Pemium 64bit (SP1) / Win 10 Pro 64bit running on Asus K73TK (8GB DDR3-SDRAM) with AMD A6-3420M.
Post Reply