Skip to content

Commit

Permalink
fix headless mode with no config file
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypinkard committed Sep 22, 2023
1 parent fde0097 commit b42e7d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pycromanager/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version_info = (0, 29, 4)
version_info = (0, 29, 5)
__version__ = ".".join(map(str, version_info))
4 changes: 2 additions & 2 deletions pycromanager/headless.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def stop_headless(debug=False):
atexit.register(stop_headless)

def start_headless(
mm_app_path: str, config_file: str='', java_loc: str=None,
mm_app_path: str, config_file: str=None, java_loc: str=None,
python_backend=False, core_log_path: str='',
buffer_size_mb: int=1024, max_memory_mb: int=2000,
port: int=_Bridge.DEFAULT_PORT, debug=False):
Expand Down Expand Up @@ -185,7 +185,7 @@ def start_headless(
# "-XX:MaxDirectMemorySize=1000",
"org.micromanager.remote.HeadlessLauncher",
str(port),
config_file,
config_file if config_file is not None else '',
str(buffer_size_mb),
core_log_path,
], cwd=mm_app_path, stdout=subprocess.PIPE
Expand Down

0 comments on commit b42e7d4

Please sign in to comment.