Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

Is it possible to modify a config file on pc from a kivy application on android?

$
0
0

I have a program on my pc that needs a config file config.ini to run :

[DEFAULT]LateralRedPolyCoef = .695 .43 .35 1 1 1 1 .41LateralYellowPolyCoef = .46 .43 .695 .43 .35 1 -1 1FrontRedPolyCoef = .695 .43 .35 1 1 1 1 .41FrontYellowPolyCoef = .46 .43 .695 .43 .35 1 -1 1

The program use this config file this way :

...config.read('config.ini')if args.position == "lateral":    lrpc = config['DEFAULT']['LateralRedPolyCoef'].split()    lypc = config['DEFAULT']['LateralYellowPolyCoef'].split()    red_zone = np.array([[float(lrpc[0]) * width, float(lrpc[1]) * height],                         [float(lrpc[2]) * width, float(lrpc[3]) * height],                         [float(lrpc[4]) * width, float(lrpc[5]) * height],                         [float(lrpc[6]) * width, float(lrpc[7]) * height]], np.int32)    yellow_zone = np.array([[float(lypc[0]) * width, float(lypc[1]) * height],                            [float(lypc[2]) * width, float(lypc[3]) * height],                            [float(lypc[4]) * width, float(lypc[5]) * height],                            [float(lypc[6]) * width, float(lypc[7]) * height]], np.int32)...

And i have a kivy application running on android like this :application

I would like to know if it's possible to connect the application to the computer (with wifi, bluetooth or other ways) and to modify the config.ini file, so that when i move the ellipses and save the final position, it actualize the config file on the computer.


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>