I'm making a __init__.py
and when running a script importing from another directory it give me a weird error
File "C:/Users/####/Desktop/Roague\data\__init__.py", line 1
data/
^
SyntaxError: invalid syntax
And I thought I was making an error so I corrected it and it still gives me an error and I keep getting an error, here is my __init__.py
data/
__init__.py
libtcodpy.py
properties.py
Here is the file I import my library with
import libtcodpy as libtcod
import data.properties
#SCREEN DEMENTIONS
SCREEN_WIDTH = 80
SCREEN_HEIGHT = 50
#Characters and objects
player = Object(SCREEN_WIDTH/2,SCREEN_HEIGHT/2, 'P', libtcod.red, 0)
objects = [player]
#Init and Mainloop
libtcod.console_init_root(SCREEN_WIDTH, SCREEN_HEIGHT, 'Roague', False)#Init the root console
libtcod.console_set_custom_font('arial10x10.png', libtcod.FONT_TYPE_GREYSCALE | libtcod.FONT_LAYOUT_TCOD)
#Load up a font
while not libtcod.console_is_window_closed():
#Loop through the objects and draw them
for object in objects:
object.draw_object()
libtcod.console_flush()
for object in objects:
object.delete()
Is there a way to fix this?