Skip to content

Commit 4a415d6

Browse files
committed
Write condor config to file specified by conda environment
1 parent 6b8821d commit 4a415d6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

htcdaskgateway/_version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
__version_tuple__: VERSION_TUPLE
1818
version_tuple: VERSION_TUPLE
1919

20-
__version__ = version = '0.1.23.dev14+gec742d5.d20250329'
21-
__version_tuple__ = version_tuple = (0, 1, 23, 'dev14', 'gec742d5.d20250329')
20+
__version__ = version = '1.0.2.dev0+g6b8821d.d20250415'
21+
__version_tuple__ = version_tuple = (1, 0, 2, 'dev0', 'g6b8821d.d20250415')

htcdaskgateway/setup_condor.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import getpass
44
import grp
55
import re
6+
import os
67
import stat
78
import sys
89
import time
@@ -127,11 +128,11 @@ def main():
127128
"""
128129

129130
config_file = condor_dir / Path("condor_config")
130-
with Path.open(config_file, "w") as f:
131+
with Path.open(os.environ["CONDOR_CONFIG"], "w") as f:
131132
f.write(config_content)
132133

133-
print("Please add this to your ~/.bashrc or ~/.bash_profile:")
134-
print(f"export CONDOR_CONFIG={config_file}")
134+
print("Condor environment configured. Try this command:")
135+
print("condor_q")
135136
# Close the SSH session
136137
child.sendline("exit")
137138

0 commit comments

Comments
 (0)