We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2bdbba commit b1855f2Copy full SHA for b1855f2
1 file changed
pycatfile.py
@@ -250,7 +250,10 @@ def get_default_threads():
250
if('PYCATFILE_CONFIG_FILE' in os.environ and os.path.exists(os.environ['PYCATFILE_CONFIG_FILE']) and __use_env_file__):
251
scriptconf = os.environ['PYCATFILE_CONFIG_FILE']
252
else:
253
- scriptconf = os.path.join(os.path.dirname(get_importing_script_path()), "catfile.ini")
+ try:
254
+ scriptconf = os.path.join(os.path.dirname(get_importing_script_path()), "catfile.ini")
255
+ except TypeError:
256
+ scriptconf = None
257
if os.path.exists(scriptconf):
258
__config_file__ = scriptconf
259
0 commit comments