Questions tagged [ini]

The INI file format includes text-based initialization information for programs. Its structure is composed of "sections" and "properties".

Filter by
Sorted by
Tagged with
0 votes
1 answer
58 views

displaying all key values from an ini file

I have an ini file that I want to get all the dates from. Currently what I have is only getting the first date. I have tried running my function in a loop, but it was still only giving me the 1st date....
EZgraves's user avatar
0 votes
0 answers
35 views

Docker container exited with code 1: PermissionError: [Errno 13] Permission denied [closed]

My Docker container exited with code 1 due to the following error: File "/usr/local/lib/python3.8/dist-packages/pdf2doi/config.py", line 125, in WriteParamsINIfile | with open(...
Milad Mohammadi's user avatar
-2 votes
0 answers
32 views

How can I pull data from a .ini file in Javascript?

I want to write an .ini file to pass some settings to a react page. I'm using a json file but I wanted to use an .ini file my code: import Configdata from '../../config.json'; const TiuloCatalogo = ...
Alison Miguel's user avatar
-1 votes
4 answers
80 views

Reverse search ini section

Assume this .ini file. [section_x] my_value=abc another_value=def [section_2] my_value=stv another_value=xyz [this_one] my_value=something another_value=sure Assume the system has the value ...
Kevin C's user avatar
  • 4,922
0 votes
0 answers
23 views

configparser Not Recognizing Sections in config.ini

I'm trying to use the configparser module in Python to read from a config.ini file. Despite having a [example_section] in my config.ini file, when I run my script, it keeps printing that the section ...
coryrobbins's user avatar
0 votes
2 answers
54 views

problem when trying to issue "composer update" command in vs code terminal on linux

I want to give the command "composer update" in a folder but this error always appears below, the same error also appears when I write in the terminal "php --version", "...
Camata Crespo Camila's user avatar
0 votes
1 answer
33 views

Loop through config.ini file in python

I'm trying to loop through my config.ini file using values in that same config.ini file. In my config.ini file I have the following: [Machine_List] List = Machine01,Machine02,Machine03 [SQL_Query] ...
Richard B's user avatar
0 votes
2 answers
41 views

GetPrivateProfileString without remove quotes

I have a ini file content below: [Test] Item="123","456" I use the code below to parse the value. But I found it didn't return the value I expected. Seems like the function will ...
EvaHHHH's user avatar
  • 293
0 votes
0 answers
9 views

I'm using Danny Beckett's tiny Ini file, and it is working great. However, I'd like to store a historical list of recent files. Can this be added?

As mentioned in the title, I'm using Danny Beckett's ini file class defined here: Reading/writing an INI file It works really great, and met all my initial requirements. However, I'd really like to be ...
Griffin's user avatar
1 vote
0 answers
14 views

Trying to log an .exe and get error message "UniPaas cabinet file (ecf) does not exist" and "abnormal termination" can not open ecf file

I am trying to troubleshoot a 3rd party UniPaaS / Magic software. The program uses simple serial protocol to communicate with another machine using com ports. I am getting the error "user ...
Haris Bihorac's user avatar
0 votes
0 answers
17 views

Kivy config.ini Not Saving Changes

So I have an app I built in Python/Kivy. I need the window to not resize, which I have accomplished by putting the graphics/resizable option to 0 in both Python and the config.ini file. In PyCharm, ...
Brandon's user avatar
  • 17
0 votes
2 answers
48 views

How to convert JSON to INI-Format

i would like to know, if there is a way with javascript or typescript to convert JSON to INI-Format. Im New­bie. from: { "peerEndpoint": "blub.bla:49997", "peerPublicKey":...
Runa Sanz's user avatar
1 vote
2 answers
48 views

How to read { and ( from .ini configs file

i have the below posted password, and it saved in .ini config. file. the following characters are marked or highlighted in red: ( and { how can i be able to read them here is how i created the .ini ...
Amrmsmb's user avatar
  • 10.6k
1 vote
1 answer
18 views

Trouble logging into CouchDB after restarting

I newly installed CouchDB on my computer and I have been experiencing troubles logging in. As a macOS user, I enter the ini file located at Library/Preferences/couchdb_local.ini where I modified the ...
Kevin Tommy's user avatar
0 votes
1 answer
32 views

Where is the file if the Filename parameter is NULL in WritePrivateProfileString

When I use winbase.h and windows.h to read/write .ini file, I found that I can use the function bool b = WritePrivateProfileStringA("App","key","test", NULL); ...
Ben's user avatar
  • 151
0 votes
3 answers
103 views

Unmarshaling INI file using Viper Go is not working as expected

I am using viper for app configuration. Code sample is below. package main import "github.com/spf13/viper" type Config struct { WelcomeMessage string `mapstructure:"message"` ...
EnterSB's user avatar
  • 994
2 votes
1 answer
144 views

Delphi - With a Interface inside a Interface I get a Memory leak but don't know why

My goal is, to get a Settings interface, that hold Information of my App Settings. That could be Informations, that are only relevant when the App is runing and Informations that should be permanent. ...
fisi-pjm's user avatar
  • 288
0 votes
0 answers
25 views

root directory for pytest logging using pytest.ini

I'm looking for a way to anchor the log file location that I gather during pytest. I currently have a project py_project | + src/ + ... + tests/ + logs/ + pytest-logs....
AirSquid's user avatar
  • 10.3k
0 votes
1 answer
182 views

How to rotate a Rainmeter skin

I have a skin "Simple Clean" for rainmeter and I would like to rotate it to align it with a particular element on my wallpaper. I want to align that visualizer with one of those lines. How ...
Chirag Maurya's user avatar
1 vote
0 answers
18 views

Getting Filenotfoundexception while writing file when deployed the java application in CAE container

Iam trying to write a file and iam getting Filenot found exception /home/jboss/src/main/resources/config.ini. The use case is there is a secretid which rotates for every 10 days and iam getting this ...
World of Titans's user avatar
0 votes
0 answers
48 views

How can I properly fill a 2D Array table with an INI config file in LABVIEW?

Trying to fill a 2D Array table with config file through LABVIEW The goal is to read an INI file through a table and be able to edit and save it to the INI file. I'm struggling on filling the table ...
strugglingstudent's user avatar
0 votes
0 answers
65 views

Python logging, Loading config from ini file, KeyError with Formatters

I'm trying to load the contents of logging.ini as the config file for the logger. Having checked the docs and other posts with similar issues. I'm still unable to figure out what is causing this error....
NRM_'s user avatar
  • 1
0 votes
0 answers
28 views

Failed to parse ansible vault password in hosts.txt file with ini plugin [duplicate]

My hosts file was working fine when I use a normal ansible password. But when I switched it to ansible vault password, I get these errors: [WARNING]: * Failed to parse /var/lib/awx/projects/Windows/...
Whaily's user avatar
  • 39
0 votes
0 answers
67 views

C# winform How to use [DllImport("kernel32.dll"] to modify the Section name in the ini file?

I have the following ini configuration file: [Section1] key1 = value1 key2 = value2 key3 = value3 key4 = value4 [Section2] key1 = value1 key2 = value2 key3 = value3 key4 = value4 The address for this ...
CsharpIsGood's user avatar
0 votes
0 answers
76 views

How to update ini file in java using classpath

I have one question in java .ini files writing. I am using ini4j. How to update .ini file using class path or relative path or resource stream? I am not able to update ini files using classpath. If I ...
World of Titans's user avatar
1 vote
1 answer
53 views

AnyLogic browser in localhost closes when refreshed. How do I not make it close when refreshed?

I am trying to run my AnyLogic model in a locally hosted chrome browser which I have managed to do so by configuring the com.anylogic.engine.ini file. However, whenever I try to refresh the browser, ...
spaceZIronBob's user avatar
0 votes
1 answer
53 views

Using configparser to remove section name only but retain its key and value pairs

I am trying to remove the section from ini file but i want to retain that section's keys and values. I tried to remove a section like this with open('testing.ini', "r") as configfile: ...
rohanK0602's user avatar
0 votes
0 answers
53 views

Particular case of ini file : new elements in QMap and Enum from another file

I' was seen other solutions here, but those solution suggest to modify the file containing the main enum and QMap of a ini file. So, here the problem : I'm working in QT (C++) about a software's ...
Batfly's user avatar
  • 13
0 votes
0 answers
113 views

Autohotkey: Find and replace multiple words/instances in LibreOffice (I have an example in MS Word)

This is the code snippet (a VBA macro adjusted for autohotkey) I use to loop through a text in a Word document and highlight all occurrences of certain words (keys → values), which is useful for my ...
NotAColdSun's user avatar
0 votes
0 answers
49 views

Call variable path on ini file

I try to call path on ini file this path depend on username , this file contain on line as show in below call C:\Users\osama[username]\AppData\Local\conditions\rule.ini that working well
Osama Ahmed's user avatar
0 votes
1 answer
271 views

PHP.ini to configure MySQL

I need php.ini code which will configure MySQL, BTW I am curious why without php.ini it throws error in mysqli_connect(), what key=value's should be in .ini file so that I can work with database. ...
Sevada 797's user avatar
1 vote
1 answer
89 views

How to write MDB content to INI files in Delphi 7?

There is a table entry for mdb. And the table has 18 columns and 10 rows. I want to write the contents of the table in the ini file. Is there a way? procedure TForm1.Button4Click(Sender: TObject); var ...
손상희's user avatar
0 votes
0 answers
35 views

How to set and persist arguments for Android Emulator?

I want to set the argument hw.ramSize for the Android Emulator but every time I launch it, that argument is reset in the hardware-qemu.ini file and the argument does not apply. How can I edit this ...
Gabriel Rocha's user avatar
0 votes
0 answers
86 views

How to omit columns in a Schema.ini file?

I'm building an ini files to import a complex text file to a table in Access. How do you omit a column? My text file is fixed width but still had a separator column in between each column of data that ...
designspeaks's user avatar
0 votes
1 answer
150 views

Problem with loading php_pdo_sqlite.dll and php_sqlite3.dll in php.ini

I've downloaded PHP v8.2.2 manually, without Apache I see php_pdo_sqlite.dll and php_sqlite3.dll in the M:\Programs\PHP v8.2.2\ext\, but when I uncomment these lines in php.ini: extension=pdo_sqlite ...
MHSarmadi's user avatar
-1 votes
1 answer
417 views

Mailer Error: SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: Relaying disallowed as [email protected] SMTP code: 553

send by phpmailer Error: Mailer Error: SMTP Error: data not accepted. SMTP server error: DATA END command failed Detail: Relaying disallowed as tr_xx[email protected] SMTP code: 553 Where do I need to ...
Chonticha Poosub's user avatar
0 votes
0 answers
23 views

How to write a python function that creates .ini file for unknown inputs?

I used configparser in python as below and created the .ini file. But, here all the inputs are predefined. Is there a way to create a .ini file where inputs are user driven? import configparser def ...
Padmini's user avatar
0 votes
1 answer
55 views

Docker files showing up as folders

At the moment I have setup a simple lamp stack environment with docker. However, when I specify e.g. a php.ini file, the php.ini file shows up as a folder and not a specific ini file - which means ...
simon's user avatar
  • 2,235
0 votes
2 answers
273 views

Is it possible to keep the format of INI file after change it with ConfigParser?

Is it possible that ConfigParser keeps the format of INI config file? I have config files which have comments and specific section/option names and if a read and change the content of file the ...
milanbalazs's user avatar
  • 4,821
0 votes
1 answer
93 views

QSettings beginReadArray() always empty

With beginReadArray() it should be possible to read a block from an ini file dynamically. I would like to read the entries in the block [colordefs] dynamically, because there can be any number of ...
user2377283's user avatar
0 votes
1 answer
83 views

How to pass parameters to vb.net menu form at run time

As per @jmcilhinney, rewriting request/question from scratch. I have a code for a form with listboxes (Vb.net) which can be viewed at this link: Multiple Selections from Listbox to rename Folders I ...
Spanish Learner 2 Learner's user avatar
0 votes
0 answers
33 views

how to change color of one word in a sentence of .ini file?

I'm currently editing my custom date file which https://prnt.sc/TnWaC7alRjh2 you can see here. And I want to highlight the date itself away from other text, is it possible? How do I do that? I have no ...
For Freedom's user avatar
0 votes
0 answers
42 views

Mac Localhost Not Reading php.ini or .user.ini files for PHP configuration

I would like to place a php.ini file in a localhost (MacOS Big Sur) site directory administrator/ to create a configuration: auto_prepend_file="/Users/USER/Sites/SITE/administrator/library/script/...
Maciek Semik's user avatar
  • 1,882
1 vote
3 answers
261 views

How to save/load a List<string> variable from PropertyGrid to an ini settings file?

I'm working on a Window Forms application in Visual Studio, and I'm using a custom settings object to keep track of some application settings. The user can change these settings through the ...
BdR's user avatar
  • 2,770
0 votes
2 answers
308 views

Compare a string that was read from a config ini file in Python?

I have a config.ini file like this: [LABEL] NAME = "eventName" And I am reading it into my python code as shown below. However, when I compare it with the exactly the same string, the ...
armin's user avatar
  • 591
0 votes
0 answers
117 views

Sharing common pytest configuration between multiple pytest ini files

I have multiple pytest ini files in my test repo for running different tests for different jobs on CI e.g. Jenkins. Each pytest.ini specifies a different subset of the tests and specifies slightly ...
Tony Kuo's user avatar
  • 126
0 votes
1 answer
364 views

PHP Storing Secrets with sodium_crypto_secretbox_keygen Key and Nonce Defeats Purpose?

For my particular PHP (8.2) Web Application I am storing keys and secrets in an .ini file outside of root in a folder /private. I have been requested to encrypt the data in the ini file (reason ...
ToddN's user avatar
  • 2,911
0 votes
1 answer
112 views

Server does not process config.ini file for credentials

I have a problem with my script. I have one file config.ini that contains multiple credentials that I need for my code and it is written like this: [some section] username = ... password = ... [some ...
needHelpToCode's user avatar
1 vote
0 answers
562 views

Syntax highlighting for INI format in Markdown

I am trying to have syntax highlighted in a Markdown document for an INI format: # ```ini # [settings] # compiler=gcc # ``` But Markdown does not recognize it? I commented the code to display the raw ...
WaterFox's user avatar
  • 860
1 vote
2 answers
349 views

Python: Working with configparser inside a class. How to access my attributes names and values dynamically inside my class-methods

My first program is getting much bigger than excepted. :) import configparser config = configparser.ConfigParser() configfile = 'RealGui.ini' class FolderLeftSettings: def __init__(...
Leonick's user avatar
  • 45

1
2 3 4 5
34