flickzeug 0.5.1

A fork of diffy: diff, patch, and merge library featuring Myers' algorithm, unified diff format parsing, fuzzy patch application, and three-way merge with conflict detection
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- runtime/src/js/pgadmin.js
+++ runtime/src/js/pgadmin.js
@@ -63,5 +63,7 @@
-if (fs.existsSync('dev_config.json')) {
-  try {
-    let dev_config = JSON.parse(fs.readFileSync('dev_config.json'));
-    pythonPath = path.resolve(dev_config['pythonPath']);
-    pgadminFile = path.resolve(dev_config['pgadminFile']);
+const configFilePath = path.join(__dirname, 'dev_config.json');
+if (fs.existsSync(configFilePath)) {
+  try {
+    const configFileContent = fs.readFileSync(configFilePath, 'utf8'); // Specify encoding
+    let dev_config = JSON.parse(configFileContent);
+    pythonPath = path.resolve(__dirname, dev_config['pythonPath']);
+    pgadminFile = path.resolve(__dirname, dev_config['pgadminFile']);