• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stephendade / Rpanion-server / 25910985650

15 May 2026 09:37AM UTC coverage: 34.424% (-0.02%) from 34.439%
25910985650

Pull #393

github

web-flow
Merge d9a4377f4 into 0851ab77e
Pull Request #393: Build: Remove unused packages

362 of 1424 branches covered (25.42%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 2 files covered. (100.0%)

1 existing line in 1 file now uncovered.

1143 of 2948 relevant lines covered (38.77%)

3.48 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

78.57
/server/paths.js
1
const appRoot = require('app-root-path');
3✔
2
const path = require('path');
3✔
3
const fs = require('fs');
3✔
4

5
// Check if we're in development mode
6
const isDev = process.env.NODE_ENV === 'development';
3✔
7

8
// Set base directory depending on dev mode
9
const baseDir = isDev ? 
3!
10
    appRoot.toString() : 
11
    '/etc/rpanion-server';
12

13
// Get Python executable path from venv if it exists, otherwise use system python3
14
function getPythonPath() {
15
    const venvPython = path.join('/usr/share/rpanion-server/app', 'python', '.venv', 'bin', 'python3');
15✔
16
    
17
    // Check if venv Python exists
18
    if (fs.existsSync(venvPython)) {
15!
UNCOV
19
        return venvPython;
×
20
    }
21
    
22
    // Fall back to system python3
23
    return 'python3';
15✔
24
}
25

26
// Export the paths
27
module.exports = {
3✔
28
    usersFile: path.join(baseDir, 'config', 'user.json'),
29
    settingsFile: path.join(baseDir, 'config', 'settings.json'),
30
    flightsLogsDir: path.join(baseDir, 'flightlogs'),
31
    kmzDir: path.join(baseDir, 'flightlogs', 'kmzlogs'),
32
    mediaDir: path.join(baseDir, 'media'),
33
    getPythonPath: getPythonPath,
34
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc