modified-dicom-pacs 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/bin/dicomweb-pacs +5 -5
- package/package.json +1 -1
- package/src/start-server.js +7 -7
package/bin/dicomweb-pacs
CHANGED
@@ -4,14 +4,14 @@ const config = require('config');
|
|
4
4
|
var fs = require('fs');
|
5
5
|
const fs1 = require('fs-extra');
|
6
6
|
var spawn = require('child_process').spawn;
|
7
|
-
console.log('starting
|
7
|
+
console.log('starting modified-dicom-pacs...');
|
8
8
|
|
9
|
-
process.chdir('./node_modules/
|
9
|
+
process.chdir('./node_modules/modified-dicom-pacs');
|
10
10
|
const ls = spawn('node', ['src/app.js']);
|
11
11
|
|
12
|
-
console.log("checkpath=-=-", `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\
|
13
|
-
let TestsTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\
|
14
|
-
let getTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\
|
12
|
+
console.log("checkpath=-=-", `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\modified-dicom-pacs\\Testss.Txt`);
|
13
|
+
let TestsTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\modified-dicom-pacs\\Testss.Txt`;
|
14
|
+
let getTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\modified-dicom-pacs\\getText.txt`;
|
15
15
|
let DataNativeFolder = `${__dirname.split('\\webpacsApp')[0]}\\data\\Native`;
|
16
16
|
|
17
17
|
ls.stdout.on('data', (data) => {
|
package/package.json
CHANGED
package/src/start-server.js
CHANGED
@@ -4,21 +4,21 @@ var fs = require('fs');
|
|
4
4
|
const fs1 = require('fs-extra');
|
5
5
|
var spawn = require('child_process').spawn;
|
6
6
|
|
7
|
-
process.chdir('./node_modules/
|
7
|
+
process.chdir('./node_modules/modified-dicom-pacs');
|
8
8
|
|
9
|
-
let TestsTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\
|
10
|
-
let getTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\
|
9
|
+
let TestsTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\modified-dicom-pacs\\Testss.Txt`;
|
10
|
+
let getTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\modified-dicom-pacs\\getText.txt`;
|
11
11
|
let DataNativeFolder = `${__dirname.split('\\webpacsApp')[0]}\\data\\Native`;
|
12
12
|
|
13
13
|
// This fixes dicom-pacs in Unix-like file systems (MacOS/Linux...) where backslashes are used instead of forward slashes like on Windows
|
14
|
-
if (__dirname.split('
|
15
|
-
TestsTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\
|
16
|
-
getTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\
|
14
|
+
if (__dirname.split('modified-dicom-pacs\\').length <= 1) {
|
15
|
+
TestsTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\modified-dicom-pacs\\Testss.Txt`;
|
16
|
+
getTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\modified-dicom-pacs\\getText.txt`;
|
17
17
|
DataNativeFolder = `${__dirname.split('\\webpacsApp')[0]}\\data\\Native`;
|
18
18
|
}
|
19
19
|
|
20
20
|
function startServer() {
|
21
|
-
console.log('starting
|
21
|
+
console.log('starting modified-dicom-pacs...');
|
22
22
|
const ls = spawn('node', ['src/app.js']);
|
23
23
|
|
24
24
|
ls.stdout.on('data', (data) => {
|