def create_game_directory(dirname):
 global GAMEDIR
 GAMEDIR = os.path.abspath(os.path.join(CURRENT_DIR, dirname))
 if os.path.exists(GAMEDIR):
  print(("Cannot create new Evennia game dir: '%s' already exists." % dirname))
  sys.exit()
 shutil.copytree(EVENNIA_TEMPLATE, GAMEDIR)
 create_settings_file()

def create_game_directory ( dirname ) : global GAMEDIR GAMEDIR = os . path . abspath ( os . path . join ( CURRENT_DIR , dirname ) ) if os . path . exists ( GAMEDIR ) : print ( ( "Cannot create new Evennia game dir: '%s' already exists." % dirname ) ) sys . exit ( ) shutil . copytree ( EVENNIA_TEMPLATE , GAMEDIR ) create_settings_file ( )
initialize a new game directory named dirname at the current path .