ChaterJee 0.6.1__py3-none-any.whl → 0.6.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ChaterJee/ChaterJee.py +8 -2
- {chaterjee-0.6.1.dist-info → chaterjee-0.6.2.dist-info}/METADATA +1 -1
- chaterjee-0.6.2.dist-info/RECORD +7 -0
- chaterjee-0.6.1.dist-info/RECORD +0 -7
- {chaterjee-0.6.1.dist-info → chaterjee-0.6.2.dist-info}/WHEEL +0 -0
- {chaterjee-0.6.1.dist-info → chaterjee-0.6.2.dist-info}/entry_points.txt +0 -0
- {chaterjee-0.6.1.dist-info → chaterjee-0.6.2.dist-info}/top_level.txt +0 -0
ChaterJee/ChaterJee.py
CHANGED
@@ -499,7 +499,7 @@ class NoteLogs:
|
|
499
499
|
def register():
|
500
500
|
parser = argparse.ArgumentParser(description="I am ChaterJee register, I note your jobs for keeping logs.")
|
501
501
|
parser.add_argument("command",type=str,help="command to run in your terminal")
|
502
|
-
parser.add_argument("--jobname",
|
502
|
+
parser.add_argument("--jobname",type=str,help="name of the job for logging",required=True)
|
503
503
|
parser.add_argument("--logdir",default=None,type=str,help="log directory path")
|
504
504
|
parser.add_argument("--logfile",default=None,type=str,help="log file path")
|
505
505
|
parser.add_argument("--logimage",default=None,type=str,help="log image path")
|
@@ -512,7 +512,13 @@ def register():
|
|
512
512
|
|
513
513
|
job = NoteLogs(args.jobname)
|
514
514
|
job.save_job_JSON()
|
515
|
-
|
515
|
+
|
516
|
+
if args.logfile is None:
|
517
|
+
logFIle = f'{args.jobname}.log'
|
518
|
+
else:
|
519
|
+
logFIle = args.logfile
|
520
|
+
|
521
|
+
with open(logFile, "w") as out, open("error.log", "w") as err:
|
516
522
|
subprocess.Popen(
|
517
523
|
[f"{args.command}"],
|
518
524
|
stdout=out,
|
@@ -0,0 +1,7 @@
|
|
1
|
+
ChaterJee/ChaterJee.py,sha256=fe3vpyMrbcF1KUNJphDvPiaxXdbaFOlu4I6wa842Mzo,21561
|
2
|
+
ChaterJee/__init__.py,sha256=tZmkZY2XbzJ8rHDh8nOmb1W73kPecPv3xcEiCPwkZf4,98
|
3
|
+
chaterjee-0.6.2.dist-info/METADATA,sha256=MeYwuCgYXzkR1zyXY1Bd5Y8oj947FplRjUFPBrC8QiE,6723
|
4
|
+
chaterjee-0.6.2.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
5
|
+
chaterjee-0.6.2.dist-info/entry_points.txt,sha256=MCOBbAWR8oBPX7h6flYn8SGUtoXTQR_qO6iLPRv4Zhc,95
|
6
|
+
chaterjee-0.6.2.dist-info/top_level.txt,sha256=Z1UAYoaNybpDiKjqa1yFpti_q0FNECVItb3-9yAh3gM,10
|
7
|
+
chaterjee-0.6.2.dist-info/RECORD,,
|
chaterjee-0.6.1.dist-info/RECORD
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
ChaterJee/ChaterJee.py,sha256=ZdCX69qwzdOpoM4UqZzMxBs4Ff_eD3aQ-I5GZT6q89I,21459
|
2
|
-
ChaterJee/__init__.py,sha256=tZmkZY2XbzJ8rHDh8nOmb1W73kPecPv3xcEiCPwkZf4,98
|
3
|
-
chaterjee-0.6.1.dist-info/METADATA,sha256=l1b-wOip9fkdZavM88skkA86xhnQXFGwUQSHXWBkoXU,6723
|
4
|
-
chaterjee-0.6.1.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
5
|
-
chaterjee-0.6.1.dist-info/entry_points.txt,sha256=MCOBbAWR8oBPX7h6flYn8SGUtoXTQR_qO6iLPRv4Zhc,95
|
6
|
-
chaterjee-0.6.1.dist-info/top_level.txt,sha256=Z1UAYoaNybpDiKjqa1yFpti_q0FNECVItb3-9yAh3gM,10
|
7
|
-
chaterjee-0.6.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|