Skip to content

Commit

Permalink
Avoid IPYTHONDIR with no profile specified
Browse files Browse the repository at this point in the history
  • Loading branch information
chapmanb committed Dec 14, 2017
1 parent 6830a61 commit f0a86ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster_helper/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ def __init__(self, scheduler, queue, num_jobs, cores_per_job=1, profile=None,
self.cluster_id = str(uuid.uuid4())
url_file = get_url_file(self.profile, self.cluster_id)

if os.path.isdir(profile) and os.path.isabs(profile):
if profile and os.path.isdir(profile) and os.path.isabs(profile):
os.environ["IPYTHONDIR"] = profile
while 1:
try:
Expand Down

0 comments on commit f0a86ff

Please sign in to comment.