Skip to content

Commit

Permalink
fix general anno conf
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamyang-liu committed Jun 25, 2021
1 parent f0f7d3c commit 1b01083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/configManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ def archive(self):

class ConfigManager(object):
__instance = None
_postfix = "annotation.conf"
def __new__(cls, *args, **kwargs):
if cls.__instance == None:
cls.__instance = super().__new__(cls)
return cls.__instance

def get_general_anno_config(self, general_path='/'):
general_path = real_directory(general_path)
print(general_path)
general_path = real_directory(general_path) + self._postfix
return AnnotationConfig(general_path)

def get_collection_anno_config(self, collection):
Expand Down

0 comments on commit 1b01083

Please sign in to comment.