Project

General

Profile

Feature #1047 » bug_1047.txt

summary - Mike Pittaro, 06/16/2020 06:43 AM

 
1
Feature #1047: Chirp support for Python virtualenv's
2

    
3
This change adds support for virtualenv's to Chirp. 
4

    
5
The bulk of the changes involve updating the platform classes to reliably
6
determine the location of the runtime directories for locales, pixmaps,
7
xml schemas, and the stock configs. The other changes are updates to use the 
8
new platform class functions, and to remove some absolute paths.
9

    
10
Technically, these changes aren't virtualenv specific - they just make 
11
Chirp more 'location aware', so virtualenv's can be used.
12

    
13
Change summary:
14

    
15
chirp/platform.py 
16

    
17
    1. adds five new functions to return runtime directories -  locale_dir(),
18
       share_dir(), stock_configs_dir(), pixmaps_dir(), schema_dir()
19

    
20
    2. updates the logic to determine the runtime locations of the runtime
21
       directories.
22

    
23
    3. adds tests for the new functions.
24

    
25
chirpui/mainapp.py
26

    
27
    1. updated to use the new platform functions for the stock_configs_dir
28
       and the pixmaps_dir.
29

    
30
chirp/generic_xml.py 
31

    
32
    1. updated to use the new platform function for the schema_dir (xml schema files)
33

    
34
chirpw
35

    
36
    1. updated to use the #!/usr/bin/env idiom, so it picks up python from the path 
37
       instead of a hard coded location.
38

    
39
setup.py 
40

    
41
    1. change the rpttool path to relative instead of absolute.
42

    
43

    
(2-2/2)