-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
executable file
·44 lines (39 loc) · 866 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/python
# -*- coding: utf-8 -*-
## \file main.py
## \brief Louncher method
import os.path
import subprocess
class Chdir:
""" \brief Class for rewriting path
"""
def __init__( self, newPath ):
""" Constructor of the class
\param self Pointer on class
\param newPath New path
"""
## Saved path
self.savedPath = os.getcwd()
os.chdir(newPath)
def __del__( self ):
""" Desctructor on class
\param self Pointer on class
"""
os.chdir( self.savedPath)
if __name__ == "__main__":
## Instantion of new path
cd=Chdir("/usr/share/mediDbase")
## return code
bc=subprocess.call("./mnWindow.py", shell=True)
exit(bc)
##
##\mainpage Documentation
##
##\section About
## Use make to install.
##
## Small app for indexing CDs, USB Flashes, ...
##
##\section Contact
## Development guided by Martin Beránek martin.beranek112@gmail.com
##