(user, tags, type, productId)
| 5 | |
| 6 | |
| 7 | def instasubprocess(user, tags, type, productId): |
| 8 | try: |
| 9 | child_env = sys.executable |
| 10 | file_pocessing = ( |
| 11 | os.getcwd() |
| 12 | + "/insta_datafetcher.py " |
| 13 | + user |
| 14 | + " " |
| 15 | + tags |
| 16 | + " " |
| 17 | + type |
| 18 | + " " |
| 19 | + productId |
| 20 | ) |
| 21 | command = child_env + " " + file_pocessing |
| 22 | result = subprocess.Popen(command, shell=True) |
| 23 | result.wait() |
| 24 | except: |
| 25 | print("error::instasubprocess>>", sys.exc_info()[1]) |
| 26 | |
| 27 | |
| 28 | if __name__ == "__main__": |
no outgoing calls
no test coverage detected