We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bddb7bb commit 8c65661Copy full SHA for 8c65661
setup.py
@@ -63,9 +63,12 @@ def __init__(self):
63
self.slurm_dir = None
64
self.bgq = 0
65
66
+ # TODO - This needs an recode
67
file_path = os.path.join(self.here, "pyslurm", "__version__.py")
- with open(file_path, "r", encoding="latin-1") as f:
68
- exec(f.read(), self.about)
+ with open(file_path, "r", encoding="latin-1") as file_object:
69
+ for line in file_object:
70
+ (key, val) = line.strip("\n").split(' = ')
71
+ self.about[key] = val.strip('"')
72
73
@staticmethod
74
def usage():
0 commit comments