Skip to content

Instantly share code, notes, and snippets.

View yonatankhunters's full-sized avatar

yonatankhunters

View GitHub Profile
import requests
import sys
class DupStdout(object):
def __init__(self, log_path):
self.terminal = sys.stdout
self.log_file = open(log_path, "w")
...
610 path = g_strdup (argv[n]);
...
629 if (path[0] != '/')
630 {
...
632 s = g_find_program_in_path (path);
...
639 argv[n] = path = s;
640 }
534 for (n = 1; n < (guint) argc; n++)
535 {
536 if (strcmp (argv[n], "--help") == 0)
….
548 if (n >= (guint) argc)
549 {
550 usage (argc, argv);
551 goto out;
552 }
553