Questions tagged [configuration-files]

Files that configure the initial settings for some computer programs.

2246 questions
116
votes
7 answers

Using ConfigParser to read a file without section name

I am using ConfigParser to read the runtime configuration of a script. I would like to have the flexibility of not providing a section name (there are scripts which are simple enough; they don't need a 'section'). ConfigParser will throw a…
Escualo
  • 40,844
  • 23
  • 87
  • 135
116
votes
1 answer

How do you dynamically reload fish config files as you would in bash?

I am looking for the equivalent of source .bashrc for Fish.
Paul Wenzel
  • 1,886
  • 2
  • 15
  • 15
111
votes
4 answers

Why does Visual Studio tell me that the AddJsonFile() method is not defined?

I'm developing an ASP.NET 5 WebAPI project using VS Ultimate 2015 Preview. I'm trying to configure the app in this way (line numbers are just guides): 1 using Microsoft.Framework.ConfigurationModel; 2 3 public IConfiguration Configuration { get;…
NetCito
  • 1,253
  • 2
  • 9
  • 6
111
votes
5 answers

Preserve case in ConfigParser?

I have tried to use Python's ConfigParser module to save settings. For my app it's important that I preserve the case of each name in my sections. The docs mention that passing str() to ConfigParser.optionxform() would accomplish this, but it…
pojo
  • 5,892
  • 9
  • 35
  • 47
103
votes
19 answers

At what point does a config file become a programming language?

I have been mulling over config files and their relationship to code for a while now and depending on the day and direction of the wind my opinions seem to change. More and more though I keep coming back to the realization I first had while…
Chas. Owens
  • 64,182
  • 22
  • 135
  • 226
100
votes
11 answers

Which is the best way to allow configuration options be overridden at the command line in Python?

I have a Python application which needs quite a few (~30) configuration parameters. Up to now, I used the OptionParser class to define default values in the app itself, with the possibility to change individual parameters at the command line when…
andreas-h
  • 10,679
  • 18
  • 60
  • 78
98
votes
5 answers

Where is the user's Subversion config file stored on the major operating systems?

For Subversion 1.7, where is the SVN "config" file located on the various major operating systems (specifically on Windows, Mac OS X and Linux)?
mstrap
  • 16,808
  • 10
  • 56
  • 86
91
votes
4 answers

Which design patterns can be applied to the configuration settings problem?

In large and complex software products managing configurable settings becomes a major pain. Two approaches I've seen to the problem are: have each component in the system load its own configuration from config files or registry settings. have a…
oz10
  • 153,307
  • 27
  • 93
  • 128
90
votes
7 answers

WCF Configuration without a config file

Does anyone know of a good example of how to expose a WCF service programatically without the use of a configuration file? I know the service object model is much richer now with WCF, so I know it's possible. I just have not seen an example of how…
Kilhoffer
  • 32,375
  • 22
  • 97
  • 124
76
votes
10 answers

Installing a configuration profile on iPhone - programmatically

I would like to ship a configuration profile with my iPhone application, and install it if needed. Mind you, we're talking about a configuration profile, not a provisioning profile. First off, such a task is possible. If you place a config profile…
Seva Alekseyev
  • 59,826
  • 25
  • 160
  • 281
69
votes
4 answers

Which eslint rules in my config are slow?

I have a config with around 100 rules, and running eslint on my project with all these rules takes around 10 seconds. I'd like to identify the slowest rules and eliminate some of them. How do I do this? Is there any profiler tool for eslint?
mik01aj
  • 11,928
  • 15
  • 76
  • 119
69
votes
1 answer

What does "rc" in matplotlib's rcParams stand for?

matplotlibrc configuration files are used to customize all kinds of properties in matplotlib. One can change the rc settings to customize the default parameters e.g: matplotlib.rcParams['font.family'] = 'times new roman' ... but what does "rc"…
65
votes
3 answers

Eclipse Java launch configuration file path

I'm looking for a file where Eclipse stores its launch configurations. I'm doing some Java development in Ubuntu. One of the executables i'm developing requires an output from another executable as a argument to it. So say, the output of 'B' needs…
AtharvaI
  • 1,160
  • 3
  • 16
  • 27
65
votes
3 answers

Adding and reading from a Config file

I have created a C# console based project. In that project i have some variables like companyName, companyType which are Strings. companyName="someCompanyName"; companyType="someCompanyType"; I need to create a config file and read values from it,…
Illep
  • 16,375
  • 46
  • 171
  • 302
62
votes
6 answers

How to manage configuration files when collaborating?

I'm writing a short script with a few simple variables at the top of the page. I want to work on them with a friend, but we aren't sure how to manage the variables needing to be changed after pulling each time for one of us, adding unnecessary junk…
Gitter
  • 621
  • 1
  • 5
  • 3