Add job.setprogress to testmodule.py.
This commit is contained in:
parent
78de11a412
commit
ef28b7f2c1
@ -29,6 +29,9 @@ class Job:
|
|||||||
self.workingPath = workingPath
|
self.workingPath = workingPath
|
||||||
self.configuration = doc[ "configuration" ]
|
self.configuration = doc[ "configuration" ]
|
||||||
|
|
||||||
|
def setprogress( self, progress ):
|
||||||
|
print ( "Job set progress to {}%.".format( progress * 100 ) )
|
||||||
|
|
||||||
# Usage: ./testmodule.py <libcalamares.so dir> <python module dir> [global_storage yaml file]
|
# Usage: ./testmodule.py <libcalamares.so dir> <python module dir> [global_storage yaml file]
|
||||||
def main( args ):
|
def main( args ):
|
||||||
moduledirpath = os.path.abspath( sys.argv[ 2 ] )
|
moduledirpath = os.path.abspath( sys.argv[ 2 ] )
|
||||||
|
Loading…
Reference in New Issue
Block a user