Skip to content

Ridoineel/Dyninter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dyninter: Dynamic python program interpreter and watcher.

# Python program monitor
# Python program watcher

Python Code interpreter at each file's modification.

Use -f or --file option to specify the input file:
ex: ./dyninter.py -f test.py


ALGO


VAR file_path: file
    last_modification_time, tmp_modification_time : Float

START
    
    file_path <-- python program file (file path)
    last_modification_time <-- file modification time 
    
    while (not CTR+C):  
        (* Infinity Loop *)

        tmp_modification_time <-- file modification time 
        
        If (last_modification_time <> tmp_modification_time) :
            (* Execute file *)
            Execute(file_path)
            
            last_modification_time <-- tmp_modification_time
        EndIf
    EndWhile
    
END

About

Python Code interpreter: at each modification

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages