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.
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?
Location of EventGhost config file?
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.
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?
Code: Select all
p = eg.configDir
print pMy released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Location of EventGhost config file?
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?
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.
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?
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
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
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Location of EventGhost config file?
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]Re: Location of EventGhost config file?
Yep. This is what I looked for. Thanks you both for helping!Pako wrote:Code: Select all
from os.path import split print split(eg.document.filePath)[0]
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.
Win 7 Home Pemium 64bit (SP1) / Win 10 Pro 64bit running on Asus K73TK (8GB DDR3-SDRAM) with AMD A6-3420M.